From 86ac4d34b1d81fca4f11fe089b285873350f3467 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 21:07:06 +0200 Subject: [PATCH] fix usage --- trash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trash.sh b/trash.sh index 3ee97fc..b4331af 100644 --- a/trash.sh +++ b/trash.sh @@ -11,7 +11,7 @@ usage() { local func_args=$1 local func_name="$2" - if [[ $func_args == 0 ]]; then echo -e "At least one argument required:\n$func_name FILE1 DIR2 ..."; return 1; fi + if [[ $func_args == 0 ]]; then echo -e "At least one argument required:\n$func_name FILE1 DIR2 ..."; exit 1; fi } trash_list() {