Shift argument after processing it
authorAmitay Isaacs <amitay@gmail.com>
Thu, 20 Nov 2014 04:57:54 +0000 (15:57 +1100)
committerMartin Schwenke <martin@meltin.net>
Tue, 25 Nov 2014 00:24:56 +0000 (11:24 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
host_setup/setup_networks.sh

index e175863..52dc29f 100755 (executable)
@@ -3,6 +3,7 @@
 dry_run=false
 if [ "$1" = "-n" ] ; then
     dry_run=true
+    shift
 fi
 
 if [ $# -ne 1 ]; then