Unverified Commit f785c74e authored by Jeremy Morrell's avatar Jeremy Morrell Committed by GitHub

Add bin/* to shellcheck check (#603)

* Add shellcheck to rest of bin/* scripts
parent 58ed00de
...@@ -17,7 +17,7 @@ error() { ...@@ -17,7 +17,7 @@ error() {
exit 1 exit 1
} }
if [ -f $1/package.json ]; then if [ -f "$1/package.json" ]; then
echo 'Node.js' echo 'Node.js'
exit 0 exit 0
fi fi
...@@ -59,7 +59,7 @@ If you are trying to deploy a Node.js application, ensure that this ...@@ -59,7 +59,7 @@ If you are trying to deploy a Node.js application, ensure that this
file is present at the top level directory. This directory has the file is present at the top level directory. This directory has the
following files: following files:
$(ls -1p $1) $(ls -1p "$1")
If you are trying to deploy an application written in another If you are trying to deploy an application written in another
language, you need to change the list of buildpacks set on your language, you need to change the list of buildpacks set on your
......
#!/usr/bin/env bash #!/usr/bin/env bash
BP_DIR=$(cd "$(dirname ${0:-})"; cd ..; pwd) BP_DIR=$(cd "$(dirname "${0:-}")" || exit; cd ..; pwd)
source $BP_DIR/lib/environment.sh # shellcheck source=lib/environment.sh
source "$BP_DIR/lib/environment.sh"
export NPM_CONFIG_PRODUCTION=${NPM_CONFIG_PRODUCTION:-false} export NPM_CONFIG_PRODUCTION=${NPM_CONFIG_PRODUCTION:-false}
export NODE_ENV=${NODE_ENV:-test} export NODE_ENV=${NODE_ENV:-test}
......
test: heroku-18 heroku-16 cedar-14 test: heroku-18 heroku-16 cedar-14
shellcheck: shellcheck:
@shellcheck -x bin/compile @shellcheck -x bin/compile bin/detect bin/release bin/test bin/test-compile
@echo TODO shellcheck bin/detect bin/release bin/test bin/test-compile
@echo TODO shellcheck -x lib/**/*.sh @echo TODO shellcheck -x lib/**/*.sh
@echo TODO shellcheck -x ci-profile/**/*.sh @echo TODO shellcheck -x ci-profile/**/*.sh
@echo TODO shellcheck -x etc/**/*.sh @echo TODO shellcheck -x etc/**/*.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment