1
0
Fork 0
mirror of https://github.com/sbrl/powahroot.git synced 2024-11-21 14:13:01 +00:00

build: fix shellcheck errors

This commit is contained in:
Starbeamrainbowlabs 2022-05-01 16:38:38 +01:00
parent 52c0ca247b
commit 1f75b18806
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

7
build
View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Make sure the current directory is the location of this script to simplify matters # Make sure the current directory is the location of this script to simplify matters
cd "$(dirname $(readlink -f $0))"; #shellcheck disable=SC1090
cd "$(dirname "$(readlink -f $0)")" || { echo "Error: Failed to cd to script directory!" >&2; exit 1; };
################ ################
### Settings ### ### Settings ###
################ ################
@ -107,6 +108,8 @@ task_docs-watch() {
while :; do # : = infinite loop while :; do # : = infinite loop
# Wait for an update # Wait for an update
# inotifywait's non-0 exit code forces an exit for some reason :-/ # inotifywait's non-0 exit code forces an exit for some reason :-/
# We explicitly *want* word splitting here
#shellcheck disable=SC2046
inotifywait -qr --event modify --format '%:e %f' $(find . -iname "*.mjs" -not -path "./node_modules/*") ./docs.css; inotifywait -qr --event modify --format '%:e %f' $(find . -iname "*.mjs" -not -path "./node_modules/*") ./docs.css;
# Rebuild the docs # Rebuild the docs
@ -178,4 +181,4 @@ task_ci() {
############################################################################### ###############################################################################
tasks_run $@; tasks_run "$@";