From e681b8fb6a971498355e3ca7122ce765bdca4f44 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Wed, 1 Nov 2023 15:27:08 +0100 Subject: [PATCH] Style fix --- bin/restic_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/restic_backup.sh b/bin/restic_backup.sh index ee38385..1ad5d57 100755 --- a/bin/restic_backup.sh +++ b/bin/restic_backup.sh @@ -63,7 +63,7 @@ IFS=':' read -ra backup_paths <<< "$RESTIC_BACKUP_PATHS" # Convert to array, an preserve spaces. See #111 backup_extra_args=( ) -if [ ! -z "$RESTIC_BACKUP_EXTRA_ARGS" ]; then +if [ -n "$RESTIC_BACKUP_EXTRA_ARGS" ]; then while IFS= read -r -d ''; do backup_extra_args+=( "$REPLY" ) done < <(xargs printf '%s\0' <<<"$RESTIC_BACKUP_EXTRA_ARGS")