diff --git a/explorer.sh b/explorer.sh index 3fefd16..5d19069 100755 --- a/explorer.sh +++ b/explorer.sh @@ -137,6 +137,5 @@ anniversary() { # Load functions case $cmd in '') day;; - *) $cmd;; + *) [[ $(type -t $cmd) == "function" ]] && $cmd || (echo -e "$cmd: Commande inconnue\n" && helpOpt);; esac -