diff --git a/bin/build b/bin/build index d7620ba61..1d7e92322 100755 --- a/bin/build +++ b/bin/build @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [ ! -d ../node_modules ]; then +if [[ ! -d ../node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/clean b/bin/clean index 7838787b0..5b5fcf949 100755 --- a/bin/clean +++ b/bin/clean @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [ ! -d ../node_modules ]; then +if [[ ! -d ../node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/lint b/bin/lint index 41cf7902d..3660919ce 100755 --- a/bin/lint +++ b/bin/lint @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [ ! -d ../node_modules ]; then +if [[ ! -d ../node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/start b/bin/start index 43ac70f6b..d955357f4 100755 --- a/bin/start +++ b/bin/start @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [ ! -d $(pwd)/node_modules ]; then +if [[ ! -d ../node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/test b/bin/test index 3098499bc..6e7b0a91f 100755 --- a/bin/test +++ b/bin/test @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [ ! -d ../node_modules ]; then +if [[ ! -d ../node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1