Fixed issues with whitespaces in path for scripts

This commit is contained in:
squidfunk
2017-03-11 14:58:13 +01:00
committed by Martin Donath
parent 96efd18c32
commit 0862c7587f
12 changed files with 23 additions and 23 deletions

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp build --clean --optimize --revision "$@"
"$(yarn bin)"/gulp build --clean --optimize --revision "$@"

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp clean "$@"
"$(yarn bin)"/gulp clean "$@"

View File

@@ -21,18 +21,18 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Annotate source files
$(yarn bin)/gulp assets:javascripts:annotate "$@"
"$(yarn bin)"/gulp assets:javascripts:annotate "$@"
FLOW_JSDOC=$?
# Run flow typecheck
$(yarn bin)/flow check tmp
"$(yarn bin)"/flow check tmp
FLOW=$?
# If one command failed, exit with error

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp help "@"
"$(yarn bin)"/gulp help "@"

View File

@@ -21,18 +21,18 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run ESLint
$(yarn bin)/eslint --max-warnings 0 .
"$(yarn bin)"/eslint --max-warnings 0 .
ESLINT=$?
# Run Stylelint
$(yarn bin)/stylelint `find src/assets -name *.scss`
"$(yarn bin)"/stylelint `find src/assets -name *.scss`
STYLELINT=$?
# If one command failed, exit with error

View File

@@ -21,12 +21,12 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp clean && \
$(yarn bin)/gulp watch --no-lint "$@"
"$(yarn bin)"/gulp clean && \
"$(yarn bin)"/gulp watch --no-lint "$@"

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp tests:visual:run --clean --no-optimize "$@"
"$(yarn bin)"/gulp tests:visual:run --clean --no-optimize "$@"

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp tests:visual:session "$@"
"$(yarn bin)"/gulp tests:visual:session "$@"

View File

@@ -21,11 +21,11 @@
# IN THE SOFTWARE.
# Check if "yarn install" was executed
if [[ ! -d $(yarn bin) ]]; then
if [[ ! -d "$(yarn bin)" ]]; then
echo "\"node_modules\" not found:"
echo "yarn install"
exit 1
fi
# Run command
$(yarn bin)/gulp tests:visual:update "$@"
"$(yarn bin)"/gulp tests:visual:update "$@"