diff --git a/bin/qemush b/bin/qemush index 6333929..b716638 100755 --- a/bin/qemush +++ b/bin/qemush @@ -90,7 +90,9 @@ public_rm() { function="$1" shift -if declare -F | cut -d \ -f 3- | grep '^public_' | sed 's/^public_//' | grep -q "^${function}$"; then +if [ -z "$function" ]; then + public_active +elif declare -F | cut -d \ -f 3- | grep '^public_' | sed 's/^public_//' | grep -q "^${function}$"; then "public_${function}" "$@" else error_usage