Skip to content

Commit

Permalink
Merge pull request #7 from qubidt/fix/shellcheck-regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
baodrate committed Feb 15, 2022
2 parents 7433459 + ffa7902 commit 000cc2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/snap-sync
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ for x in $selected_configs; do
fi
done
if [[ "$delete_failed" == [Yy]"es" || "$delete_failed" == [Yy] ]]; then
snapper -c "$x" delete "$(snapper -c "$x" list --disable-used-space | awk '/'$name' backup in progress/ {print $1}')"
# explicit split list of snapshots (on whitespace) into multiple arguments
# shellcheck disable=SC2046
snapper -c "$x" delete $(snapper -c "$x" list --disable-used-space | awk '/'$name' backup in progress/ {print $1}')
fi
fi
fi
Expand Down

0 comments on commit 000cc2b

Please sign in to comment.