From e1f4d4350bad85c6ccdfd66dbd7df55cb43ab3c1 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 15 Oct 2023 13:53:11 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20:=20comportement=20par=20d=C3=A9faut=20?= =?UTF-8?q?si=20aucun=20argument=20n'est=20pass=C3=A9=20dans=20qemush?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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