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.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
`npm bin`/gulp build --clean --optimize --revision "$@"
|
||||
$(npm bin)/gulp build --clean --optimize --revision "$@"
|
||||
|
@ -21,11 +21,11 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
`npm bin`/gulp clean "$@"
|
||||
$(npm bin)/gulp clean "$@"
|
||||
|
@ -21,18 +21,18 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Annotate source files
|
||||
`npm bin`/gulp assets:javascripts:annotate "$@"
|
||||
$(npm bin)/gulp assets:javascripts:annotate "$@"
|
||||
FLOW_JSDOC=$?
|
||||
|
||||
# Run flow typecheck
|
||||
`npm bin`/flow check tmp
|
||||
$(npm bin)/flow check tmp
|
||||
FLOW=$?
|
||||
|
||||
# If one command failed, exit with error
|
||||
|
@ -21,18 +21,18 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run ESLint
|
||||
`npm bin`/eslint --max-warnings 0 .
|
||||
$(npm bin)/eslint --max-warnings 0 .
|
||||
ESLINT=$?
|
||||
|
||||
# Run Stylelint
|
||||
`npm bin`/stylelint `find src/assets -name *.scss`
|
||||
$(npm bin)/stylelint `find src/assets -name *.scss`
|
||||
STYLELINT=$?
|
||||
|
||||
# If one command failed, exit with error
|
||||
|
@ -21,12 +21,12 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
`npm bin`/gulp clean && \
|
||||
`npm bin`/gulp watch --no-lint "$@"
|
||||
$(npm bin)/gulp clean && \
|
||||
$(npm bin)/gulp watch --no-lint "$@"
|
||||
|
@ -21,11 +21,11 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 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.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
`npm bin`/gulp tests:visual:session "$@"
|
||||
$(npm bin)/gulp tests:visual:session "$@"
|
||||
|
@ -21,11 +21,11 @@
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
if [[ ! -d $(npm bin) ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
`npm bin`/gulp tests:visual:update "$@"
|
||||
$(npm bin)/gulp tests:visual:update "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user