Skip to content

Commit ab8e8b9

Browse files
Remove unused variables in shell scripts.
1 parent 929fd72 commit ab8e8b9

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

contrib/devtools/git-subtree-check.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ find_latest_squash()
1818
sub=
1919
git log --grep="^git-subtree-dir: $dir/*\$" \
2020
--pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" |
21-
while read a b junk; do
21+
while read a b _; do
2222
case "$a" in
2323
START) sq="$b" ;;
2424
git-subtree-mainline:) main="$b" ;;
@@ -48,7 +48,6 @@ if [ -z "$latest_squash" ]; then
4848
fi
4949

5050
set $latest_squash
51-
old=$1
5251
rev=$2
5352
if [ "d$(git cat-file -t $rev 2>/dev/null)" != dcommit ]; then
5453
echo "ERROR: subtree commit $rev unavailable. Fetch/update the subtree repository" >&2

contrib/gitian-build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
sign=false
77
verify=false
88
build=false
9-
setupenv=false
109

1110
# Systems to build
1211
linux=true

contrib/verify-commits/verify-commits.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ VERIFIED_ROOT=$(cat "${DIR}/trusted-git-root")
1212
VERIFIED_SHA512_ROOT=$(cat "${DIR}/trusted-sha512-root-commit")
1313
REVSIG_ALLOWED=$(cat "${DIR}/allow-revsig-commits")
1414

15-
HAVE_FAILED=false
16-
1715
HAVE_GNU_SHA512=1
1816
[ ! -x "$(which sha512sum)" ] && HAVE_GNU_SHA512=0
1917

@@ -95,9 +93,9 @@ while true; do
9593
FILE_HASHES=""
9694
for FILE in $(git ls-tree --full-tree -r --name-only "$CURRENT_COMMIT" | LC_ALL=C sort); do
9795
if [ "$HAVE_GNU_SHA512" = 1 ]; then
98-
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | sha512sum | { read FIRST OTHER; echo $FIRST; } )
96+
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | sha512sum | { read FIRST _; echo $FIRST; } )
9997
else
100-
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | shasum -a 512 | { read FIRST OTHER; echo $FIRST; } )
98+
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | shasum -a 512 | { read FIRST _; echo $FIRST; } )
10199
fi
102100
[ "$FILE_HASHES" != "" ] && FILE_HASHES="$FILE_HASHES"'
103101
'

contrib/verifybinaries/verify.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ if [ -n "$1" ]; then
7676
BASEDIR="$BASEDIR$RCSUBDIR.$RCVERSION/"
7777
fi
7878
fi
79-
80-
SIGNATUREFILE="$BASEDIR$SIGNATUREFILENAME"
8179
else
8280
echo "Error: need to specify a version on the command line"
8381
exit 2

0 commit comments

Comments
 (0)