diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-20 14:24:49 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-06-25 20:46:16 +1000 |
commit | 64d3ac6d14fa967709e8078ec0fbe157b1f024bc (patch) | |
tree | c2377412bb056df07c6652654d9cf0d96f8e5749 /autocluster | |
parent | 9334893ba4d9ddce5abb00113c3bd97e2dbba7c5 (diff) | |
download | autocluster-64d3ac6d14fa967709e8078ec0fbe157b1f024bc.tar.gz autocluster-64d3ac6d14fa967709e8078ec0fbe157b1f024bc.tar.xz autocluster-64d3ac6d14fa967709e8078ec0fbe157b1f024bc.zip |
Generalise variables used in main case statement
About to introduce "noun verb ..." and want to avoid $command being a
noun. :-)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'autocluster')
-rwxr-xr-x | autocluster | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autocluster b/autocluster index 010eb46..81edcf9 100755 --- a/autocluster +++ b/autocluster @@ -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 |