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:
parent
253d805352
commit
acf74131cc
@ -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 "$@"
|
||||||
|
@ -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 "$@"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 "$@"
|
||||||
|
@ -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 "$@"
|
||||||
|
@ -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 "$@"
|
||||||
|
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user