From 8c064a13b243aa7ea6a40152697979121f442220 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 29 Jan 2019 17:14:54 -0800 Subject: [PATCH] Minor comment cleanup, use $@ instead of $* for input checking --- quickdel.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/quickdel.sh b/quickdel.sh index 5a9e658..45420f0 100644 --- a/quickdel.sh +++ b/quickdel.sh @@ -1,7 +1,8 @@ #!/bin/bash -# quickdel - delete any file matching a query -# Dependencies: -# fd +## quickdel - delete any file matching a query +## Dependencies: +## * bash +## * fd printHelp() { cat << EOF @@ -65,7 +66,7 @@ while true; do done # Prevent fd from selecting everything -[[ -z "${*}" ]] && printf '%s\n' "No queries entered, cancelling" >&2 && exit 1 +[[ -z "${@}" ]] && printf '%s\n' "No queries entered, cancelling" >&2 && exit 1 for pattern in "${@}"; do while IFS= read -r -d '' file; do