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