File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ set -a
22
22
23
23
maybe_noinput=' noinput'
24
24
25
- case " $1 " in
26
- observer)
25
+ case " $@ " in
26
+ * observer* )
27
27
maybe_noinput=' input'
28
28
;;
29
- remote_shell)
29
+ * remote_shell* )
30
30
maybe_noinput=' input'
31
31
;;
32
32
* )
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ unset _tmp_help_requested
55
55
56
56
maybe_noinput=' noinput'
57
57
58
- case " $1 " in
59
- add_user)
58
+ case " $@ " in
59
+ * add_user* )
60
60
if [ " $# " -eq 2 ]
61
61
then
62
62
# In this case, input is required to provide the password:
@@ -91,7 +91,7 @@ case "$1" in
91
91
maybe_noinput=' noinput'
92
92
fi
93
93
;;
94
- authenticate_user)
94
+ * authenticate_user* )
95
95
if [ " $# " -eq 2 ]
96
96
then
97
97
# In this case, input is required to provide the password:
@@ -106,7 +106,7 @@ case "$1" in
106
106
maybe_noinput=' noinput'
107
107
fi
108
108
;;
109
- change_password)
109
+ * change_password* )
110
110
maybe_noinput=' input'
111
111
if [ " $# " -gt 2 ]
112
112
then
@@ -118,13 +118,13 @@ case "$1" in
118
118
maybe_noinput=' noinput'
119
119
fi
120
120
;;
121
- decode| encode)
121
+ * decode* | * encode* )
122
122
# It is unlikely that these commands will be run in a shell script loop
123
123
# with redirection, so always assume that stdin input is needed
124
124
#
125
125
maybe_noinput=' input'
126
126
;;
127
- eval)
127
+ * eval* )
128
128
if [ " $# " -eq 1 ]
129
129
then
130
130
# If there is only one argument, 'eval', then input is required
@@ -134,7 +134,7 @@ case "$1" in
134
134
maybe_noinput=' input'
135
135
fi
136
136
;;
137
- hash_password)
137
+ * hash_password* )
138
138
if [ " $# " -eq 1 ]
139
139
then
140
140
# If there is only one argument, 'hash_password', then input is required
You can’t perform that action at this time.
0 commit comments