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:
Aneesh Agrawal 2016-08-04 18:12:54 -04:00
parent 79ef9b4efc
commit 9231ca1c69
10 changed files with 23 additions and 14 deletions

View file

@ -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 "${@}"