git.samba.org
/
tridge
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9334893
)
Generalise variables used in main case statement
author
Martin Schwenke
<martin@meltin.net>
Fri, 20 Jun 2014 04:24:49 +0000
(14:24 +1000)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/autocluster
b/autocluster
index 010eb4662983afac471c4381a86f3295ee949f43..81edcf9321360bad36fd9913c63db0460c892f0f 100755
(executable)
--- 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)
- t
ype=$1
+ t
="$1"
shift
- case
$type
in
+ case
"$t"
in
base)
[ $# != 0 ] && usage
create_base