Generalise variables used in main case statement
authorMartin Schwenke <martin@meltin.net>
Fri, 20 Jun 2014 04:24:49 +0000 (14:24 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 25 Jun 2014 10:46:16 +0000 (20:46 +1000)
About to introduce "noun verb ..." and want to avoid $command being a
noun.  :-)

Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster

index 010eb4662983afac471c4381a86f3295ee949f43..81edcf9321360bad36fd9913c63db0460c892f0f 100755 (executable)
@@ -1238,14 +1238,14 @@ check_command expect
 
 [ $# -lt 1 ] && usage
 
-command="$1"
+t="$1"
 shift
 
-case $command in
+case "$t" in
     create)
-       type=$1
+       t="$1"
        shift
-       case $type in
+       case "$t" in
            base)
                [ $# != 0 ] && usage
                create_base