summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2010-12-14 04:28:45 +0000
committerJeff Bilyk <jbilyk@gmail.com>2010-12-14 04:28:45 +0000
commitb4829453eff5114487f2859e41c2a8375fc9be62 (patch)
tree626a1223952d05a1d2ae16720f338a8154981a2a
parent4e9667c8fe6d40e80271d54d391878344a2a68b2 (diff)
downloadapts-b4829453eff5114487f2859e41c2a8375fc9be62.tar.bz2
apts-b4829453eff5114487f2859e41c2a8375fc9be62.tar.xz
apts: fix handling of multiple package test arguments
fix multiple package test arguments
-rwxr-xr-xapts4
1 files changed, 2 insertions, 2 deletions
diff --git a/apts b/apts
index e91ca10..6a612dc 100755
--- a/apts
+++ b/apts
@@ -56,8 +56,8 @@ while [ $# -gt 0 ]; do
if [ "$?" == "1" ];
then echo "Testing file for $PACKAGE does not exist" && /bin/sh -e ./tests/generic-apk $PACKAGE >> "$OUTFILE" 2>&1 && echo "$PACKAGE passed tests" && exit 0;
# if testing file exists, then keep running
- else echo "Testing $PACKAGE apk" && /bin/sh -e ./tests/$PACKAGE $PACKAGE >> "$OUTFILE" 2>&1 && echo "$PACKAGE passed tests" && exit 0;
+ else echo "Testing $PACKAGE apk" && /bin/sh -e ./tests/$PACKAGE $PACKAGE >> "$OUTFILE" 2>&1 && echo "$PACKAGE passed tests";
fi
- i=$(( $i + 1 ))
+ i=$((i + 1))
shift
done