diff --git a/scripts/build b/scripts/build index 8037cbda3..45b3f3210 100755 --- a/scripts/build +++ b/scripts/build @@ -21,11 +21,11 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp build --clean --optimize --revision "$@" +$(npm bin)/gulp build --clean --optimize --revision "$@" diff --git a/scripts/clean b/scripts/clean index 309567950..90a6ab619 100755 --- a/scripts/clean +++ b/scripts/clean @@ -21,11 +21,11 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp clean "$@" +$(npm bin)/gulp clean "$@" diff --git a/scripts/flow b/scripts/flow index ecc7f103c..054800bed 100755 --- a/scripts/flow +++ b/scripts/flow @@ -21,18 +21,18 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Annotate source files -`npm bin`/gulp assets:javascripts:annotate "$@" +$(npm bin)/gulp assets:javascripts:annotate "$@" FLOW_JSDOC=$? # Run flow typecheck -`npm bin`/flow check tmp +$(npm bin)/flow check tmp FLOW=$? # If one command failed, exit with error diff --git a/scripts/lint b/scripts/lint index f83f6c9ba..ed059112d 100755 --- a/scripts/lint +++ b/scripts/lint @@ -21,18 +21,18 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run ESLint -`npm bin`/eslint --max-warnings 0 . +$(npm bin)/eslint --max-warnings 0 . ESLINT=$? # Run Stylelint -`npm bin`/stylelint `find src/assets -name *.scss` +$(npm bin)/stylelint `find src/assets -name *.scss` STYLELINT=$? # If one command failed, exit with error diff --git a/scripts/start b/scripts/start index 95f1999b9..bdf8dd583 100755 --- a/scripts/start +++ b/scripts/start @@ -21,12 +21,12 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp clean && \ -`npm bin`/gulp watch --no-lint "$@" +$(npm bin)/gulp clean && \ +$(npm bin)/gulp watch --no-lint "$@" diff --git a/scripts/test/visual/run b/scripts/test/visual/run index 794378687..79cfc7ca9 100755 --- a/scripts/test/visual/run +++ b/scripts/test/visual/run @@ -21,11 +21,11 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp tests:visual:run --clean --no-optimize "$@" +$(npm bin)/gulp tests:visual:run --clean --no-optimize "$@" diff --git a/scripts/test/visual/session b/scripts/test/visual/session index 5d30bd2e1..352387d0f 100755 --- a/scripts/test/visual/session +++ b/scripts/test/visual/session @@ -21,11 +21,11 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp tests:visual:session "$@" +$(npm bin)/gulp tests:visual:session "$@" diff --git a/scripts/test/visual/update b/scripts/test/visual/update index 61789f24d..61aa20cb4 100755 --- a/scripts/test/visual/update +++ b/scripts/test/visual/update @@ -21,11 +21,11 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d `npm bin` ]]; then +if [[ ! -d $(npm bin) ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 fi # Run command -`npm bin`/gulp tests:visual:update "$@" +$(npm bin)/gulp tests:visual:update "$@"