Merge ~cjwatson/launchpad:improve-shell-quoting into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 2809101db8e0f0ebebed443d5ce4aee1848f8f29 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:improve-shell-quoting |
Merge into: | launchpad:master |
Diff against target: |
287 lines (+54/-50) 10 files modified
cronscripts/nightly.sh (+20/-20) cronscripts/publishing/cron.daily-ppa (+3/-3) cronscripts/publishing/cron.publish-copy-archives (+1/-1) cronscripts/publishing/cron.publish-ppa (+9/-5) scripts/update-version-info.sh (+1/-1) utilities/find-changed-files.sh (+2/-2) utilities/launchpad-database-setup (+2/-2) utilities/rocketfuel-get (+2/-2) utilities/rocketfuel-setup (+13/-13) utilities/start-dev-soyuz.sh (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+417099@code.launchpad.net |
Commit message
Improve quoting in shell scripts
Description of the change
In shell, $-expansions should normally be double-quoted to prevent word splitting being applied to the result of the expansion, except in cases where word splitting is specifically needed. `shellcheck` complained about a number of cases where we were failing to do this, so fix them.
To post a comment you must log in.
I may miss the reason why you do not add the pre-commit hook for shellcheck with this commit?
If we do not enforce shellcheck, there is always the chance that bad code gets added again.