Skip to content

Commit d9fa0c9

Browse files
committed
Remove unnecessary parsing branch and --armor
Per the new bash guidelines the -*) branch is not necessary and it also seems like `--armor` is unnecessary.
1 parent 8127fc5 commit d9fa0c9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ci/verify-locked-down-signatures.sh

+2-7
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ while [ "$#" -gt 0 ]; do
2323
whitelisted_commit="$2"
2424
shift
2525
;;
26-
-*)
27-
echo "Unknown option \"$1\"
28-
The options are --import-gpg-keys and --whitelist"
29-
exit 1
30-
;;
3126
*)
32-
echo "Unknown argument
27+
echo "Unknown argument $1
3328
The options are --import-gpg-keys and --whitelist"
3429
exit 1
3530
;;
@@ -40,7 +35,7 @@ done
4035
if [[ "$import_gpg_keys" == "true" ]]; then
4136
GNUPGHOME=$(mktemp -d)
4237
for key in $SCRIPT_DIR/keys/*; do
43-
gpg --import --armor $key
38+
gpg --import $key
4439
done
4540
fi
4641

0 commit comments

Comments
 (0)