From 8e9c1799b972bce96325565551f05e719e5a1ed4 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 15 Jan 2022 11:18:05 +0900 Subject: [PATCH] lib/cli: Fix for Bash syntax --- lib/cli.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.bash b/lib/cli.bash index e31fa63d8..090eaf733 100644 --- a/lib/cli.bash +++ b/lib/cli.bash @@ -11,7 +11,7 @@ function omb { # Subcommand functions start with _ so that they don't # appear as completion entries when looking for `omb` - (( $+functions[_omb::$command] )) || { + _omb_util_function_exists "_omb::$command" || { _omb::help return 1 } @@ -54,7 +54,7 @@ function _omb { esac elif (( CURRENT == 4 )); then case "${words[2]}::${words[3]}" in - plugin::(disable|enable|load)) + plugin::@(disable|enable|load)) local -aU valid_plugins if [[ "${words[3]}" = disable ]]; then