fix usage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 21:09:15 +02:00
parent b441b73b06
commit bde8524e25

View File

@ -37,7 +37,7 @@ trash_empty() {
}
trash_restore() {
usage "$#" "$0"
usage "$#" "${FUNCNAME[0]}"
for FILE_TO_RESTORE in "$@"; do
# Get old filepath for restore
@ -52,7 +52,7 @@ trash_restore() {
}
trash_rm() {
usage "$#" "$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