diff --git a/xwords4/android/scripts/sign-align.sh b/xwords4/android/scripts/sign-align.sh index e2e0548c7..9c4faf2a6 100755 --- a/xwords4/android/scripts/sign-align.sh +++ b/xwords4/android/scripts/sign-align.sh @@ -8,7 +8,7 @@ LIST_FILE=1 usage() { [ $# -gt 0 ] && echo "ERROR: $1" - echo "usage: $0 [--apk path/to/unsigned.apk]*" + echo "usage: $0 [--apk path/to/unsigned.apk]+" } while [ $# -gt 0 ]; do @@ -25,6 +25,8 @@ while [ $# -gt 0 ]; do shift done +[ -z "$APKS" ] && usage "no apks provided" + for APK in $APKS; do if [ ${APK/-unsigned} == $APK ]; then echo "$APK not unsigned; skipping"