From 198fcfeba486af496ee798cad7d078c58281e725 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 21:18:13 +0200 Subject: [PATCH] fix usage --- trash.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trash.sh b/trash.sh index 27ffe09..27b01fc 100644 --- a/trash.sh +++ b/trash.sh @@ -22,7 +22,7 @@ trash_list() { } trash_put() { - usage "$#" ${FUNCNAME[0]} + usage "$#" "${FUNCNAME[0]}" for FILE in $@; do # Store old filepath for later restore @@ -37,7 +37,7 @@ trash_empty() { } trash_restore() { - usage "$#" ${FUNCNAME[0]} + usage "$#" "${FUNCNAME[0]}" for FILE_TO_RESTORE in "$@"; do # Get old filepath for restore @@ -52,7 +52,7 @@ trash_restore() { } trash_rm() { - usage "$#" ${FUNCNAME[0]} + usage "$#" "${FUNCNAME[0]}" #if [[ $# == 0 ]]; then echo -e "At least one argument required:\n$0 FILE1 DIR2 ..."; return 1; fi for FILE_TO_REMOVE in "$@"; do