mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Add lint to ensure substitutions use the full form
Check that any variable substitutions use the full ${VAR} form, not just $VAR (but don't check for quoting yet).
This commit is contained in:
parent
79ef9b4efc
commit
9231ca1c69
10 changed files with 23 additions and 14 deletions
|
@ -9,5 +9,5 @@ set -o nounset
|
|||
set -o pipefail
|
||||
|
||||
diff="$(git diff -- */*/Cargo.lock)"
|
||||
echo "$diff"
|
||||
[[ ! $diff ]]
|
||||
echo "${diff}"
|
||||
[[ -z "${diff}" ]]
|
||||
|
|
|
@ -17,5 +17,5 @@ set -o pipefail
|
|||
./mach test-wpt --manifest-update --binary= SKIP_TESTS > /dev/null
|
||||
|
||||
diff="$(git diff -- tests/*/MANIFEST.json)"
|
||||
echo "$diff"
|
||||
[[ ! $diff ]]
|
||||
echo "${diff}"
|
||||
[[ -z "${diff}" ]]
|
||||
|
|
|
@ -12,7 +12,7 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
cd "$(dirname $0)/../.."
|
||||
cd "$(dirname ${0})/../.."
|
||||
|
||||
./mach doc
|
||||
# etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html
|
||||
|
|
|
@ -27,7 +27,7 @@ upload() {
|
|||
|
||||
|
||||
main() {
|
||||
if [[ "$#" != 1 ]]; then
|
||||
if [[ "${#}" != 1 ]]; then
|
||||
usage >&2
|
||||
return 1
|
||||
fi
|
||||
|
@ -58,4 +58,4 @@ main() {
|
|||
upload "${platform}" ${package} "${extension}"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
main "${@}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue