Style fix

This commit is contained in:
Erik Westrup
2023-11-01 15:27:08 +01:00
parent e5e5cea35e
commit e681b8fb6a
+1 -1
View File
@@ -63,7 +63,7 @@ IFS=':' read -ra backup_paths <<< "$RESTIC_BACKUP_PATHS"
# Convert to array, an preserve spaces. See #111 # Convert to array, an preserve spaces. See #111
backup_extra_args=( ) backup_extra_args=( )
if [ ! -z "$RESTIC_BACKUP_EXTRA_ARGS" ]; then if [ -n "$RESTIC_BACKUP_EXTRA_ARGS" ]; then
while IFS= read -r -d ''; do while IFS= read -r -d ''; do
backup_extra_args+=( "$REPLY" ) backup_extra_args+=( "$REPLY" )
done < <(xargs printf '%s\0' <<<"$RESTIC_BACKUP_EXTRA_ARGS") done < <(xargs printf '%s\0' <<<"$RESTIC_BACKUP_EXTRA_ARGS")