Remove unused variables in shell scripts.

Zcash: Only the script we have.
This commit is contained in:
practicalswift 2017-07-08 00:15:36 +02:00 committed by Jack Grigg
parent 92633fdc3d
commit 52d9854034
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,7 @@ find_latest_squash()
sub= sub=
git log --grep="^git-subtree-dir: $dir/*\$" \ git log --grep="^git-subtree-dir: $dir/*\$" \
--pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" | --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 case "$a" in
START) sq="$b" ;; START) sq="$b" ;;
git-subtree-mainline:) main="$b" ;; git-subtree-mainline:) main="$b" ;;
@ -49,7 +49,6 @@ if [ -z "$latest_squash" ]; then
fi fi
set $latest_squash set $latest_squash
old=$1
rev=$2 rev=$2
if [ "d$(git cat-file -t $rev 2>/dev/null)" != dcommit ]; then if [ "d$(git cat-file -t $rev 2>/dev/null)" != dcommit ]; then
echo "ERROR: subtree commit $rev unavailable. Fetch/update the subtree repository" >&2 echo "ERROR: subtree commit $rev unavailable. Fetch/update the subtree repository" >&2