Fix not flattening args when doing null comparisons

This commit is contained in:
Salt 2025-01-19 12:54:48 -06:00
parent 502d7397cd
commit 8cffa77d38

View File

@ -48,7 +48,7 @@ fi
# Helper functions # Helper functions
backup() { backup() {
# Takes a file or directory to backup and backs it up # Takes a file or directory to backup and backs it up
[ -z "$@" ] && return 1 [ -z "$*" ] && return 1
if command -v restic > /dev/null 2>&1; then if command -v restic > /dev/null 2>&1; then
for dir in "$@"; do for dir in "$@"; do