From 8cffa77d38304f9a3a05556c0f7849a70d6529b9 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 19 Jan 2025 12:54:48 -0600 Subject: [PATCH] Fix not flattening args when doing null comparisons --- roles/backup/templates/s3backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/backup/templates/s3backup.sh b/roles/backup/templates/s3backup.sh index 4bc0c81..3551034 100644 --- a/roles/backup/templates/s3backup.sh +++ b/roles/backup/templates/s3backup.sh @@ -48,7 +48,7 @@ fi # Helper functions backup() { # 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 for dir in "$@"; do