mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Fixed issues with whitespaces in path for scripts
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "@"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user