1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Replace backticks with $() command substitution for portability

This commit is contained in:
squidfunk 2017-02-26 18:04:38 +01:00 committed by Martin Donath
parent 253d805352
commit acf74131cc
8 changed files with 19 additions and 19 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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