Browse Source

Fix quoting of heredoc for loop variables.

The for loop variables need to be quoted otherwise they are expanded (to
nothing) as the heredoc is parsed.
main
Mark Hindley 2 years ago
parent
commit
869d243f25
  1. 4
      orchestrate.sh

4
orchestrate.sh

@ -81,8 +81,8 @@ if [ -n "${DO_AMPROLLA_PUSH}" ]; then
_logfiles="libsystemd bannedpackages"
mkdir -p "$REPO_ROOT"/log/t
for i in $_logfiles; do
sort "$REPO_ROOT/log/${i}.txt" | uniq > "$REPO_ROOT/log/t/${i}.txt"
for i in \$_logfiles; do
sort "$REPO_ROOT/log/\${i}.txt" | uniq > "$REPO_ROOT/log/t/\${i}.txt"
done
cp -f "$REPO_ROOT"/log/t/*.txt "$REPO_ROOT"/log/

Loading…
Cancel
Save