Skip to content

Commit

Permalink
rename var for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
erikw committed Sep 25, 2023
1 parent 3cdf150 commit 2873f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/restic_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ warn_on_missing_envvars \
IFS=':' read -ra backup_paths <<< "$RESTIC_BACKUP_PATHS"

# Convert to array, an preserve spaces. See #111
extra_args=( )
backup_extra_args=( )
while IFS= read -r -d ''; do
extra_args+=( "$REPLY" )
backup_extra_args+=( "$REPLY" )
done < <(xargs printf '%s\0' <<<"$RESTIC_BACKUP_EXTRA_ARGS")

B2_ARG=
Expand Down Expand Up @@ -109,7 +109,7 @@ restic backup \
--tag "$RESTIC_BACKUP_TAG" \
"${B2_ARG[@]}" \
"${exclusion_args[@]}" \
"${extra_args[@]}" \
"${backup_extra_args[@]}" \
"${backup_paths[@]}" &
wait $!

Expand Down

0 comments on commit 2873f6a

Please sign in to comment.