Improve test skipping functionality
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 22:05:02 +0000 (00:05 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 22:05:02 +0000 (00:05 +0200)
devscripts/release.sh

index 20a96c6a9a4d5d72cfedc42372063215e2785ac6..015372d5e0077ac8ab6d7e50067e67b59f58af99 100755 (executable)
@@ -15,8 +15,9 @@
 set -e
 
 skip_test=false
-if [ "$2" = '--skip-test' ]; then
+if [ "$1" = '--skip-test' ]; then
     skip_test=true
+    shift
 fi
 if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.06"; exit 1; fi
 version="$1"