From 52d9854034454f8aedcae64654fcaf92af8d9953 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 8 Jul 2017 00:15:36 +0200 Subject: [PATCH] Remove unused variables in shell scripts. Zcash: Only the script we have. --- test/lint/git-subtree-check.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/lint/git-subtree-check.sh b/test/lint/git-subtree-check.sh index d487c1d9b..97e41211a 100755 --- a/test/lint/git-subtree-check.sh +++ b/test/lint/git-subtree-check.sh @@ -19,7 +19,7 @@ find_latest_squash() sub= git log --grep="^git-subtree-dir: $dir/*\$" \ --pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" | - while read a b junk; do + while read a b _; do case "$a" in START) sq="$b" ;; git-subtree-mainline:) main="$b" ;; @@ -49,7 +49,6 @@ if [ -z "$latest_squash" ]; then fi set $latest_squash -old=$1 rev=$2 if [ "d$(git cat-file -t $rev 2>/dev/null)" != dcommit ]; then echo "ERROR: subtree commit $rev unavailable. Fetch/update the subtree repository" >&2