Oops
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
dfd942ca49
commit
94bb395417
4
ssm
4
ssm
|
@ -2,7 +2,7 @@
|
|||
shopt -s nullglob
|
||||
|
||||
# Utility functions
|
||||
is_function() [[ $(type -t $1 2>/dev/null) == 'function' ]]
|
||||
is_function() [[ "$(type -t "$1" 2>/dev/null)" == 'function' ]]
|
||||
readonly -f is_function
|
||||
|
||||
usage() {
|
||||
|
@ -128,7 +128,7 @@ if_service_action() {
|
|||
is_function "$f" && return 0
|
||||
done
|
||||
|
||||
return 0
|
||||
return 1
|
||||
}; readonly -f if_service_action
|
||||
|
||||
run_service_action() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user