Remove unused variables in shell scripts.
Zcash: Only the script we have.
This commit is contained in:
parent
92633fdc3d
commit
52d9854034
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue