mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
show usage when no args provided
This commit is contained in:
parent
535dc29646
commit
1e766ee52d
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue