mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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() {
|
usage() {
|
||||||
[ $# -gt 0 ] && echo "ERROR: $1"
|
[ $# -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
|
while [ $# -gt 0 ]; do
|
||||||
|
@ -25,6 +25,8 @@ while [ $# -gt 0 ]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -z "$APKS" ] && usage "no apks provided"
|
||||||
|
|
||||||
for APK in $APKS; do
|
for APK in $APKS; do
|
||||||
if [ ${APK/-unsigned} == $APK ]; then
|
if [ ${APK/-unsigned} == $APK ]; then
|
||||||
echo "$APK not unsigned; skipping"
|
echo "$APK not unsigned; skipping"
|
||||||
|
|
Loading…
Reference in a new issue