aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-08 00:15:36 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-09 10:45:23 +0200
commitab8e8b97a359e1c4f1bca8e1769021c95019f2c4 (patch)
tree9c72a01695ed3e450fea7b0bddbbbe25deb81854 /contrib/devtools
parent929fd7276c0f0c30b9416f61a6f5f35d763d81e4 (diff)
downloadbitcoin-ab8e8b97a359e1c4f1bca8e1769021c95019f2c4.tar.xz
Remove unused variables in shell scripts.
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-xcontrib/devtools/git-subtree-check.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/devtools/git-subtree-check.sh b/contrib/devtools/git-subtree-check.sh
index 2384d66cad..446db59167 100755
--- a/contrib/devtools/git-subtree-check.sh
+++ b/contrib/devtools/git-subtree-check.sh
@@ -18,7 +18,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" ;;
@@ -48,7 +48,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