mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Improve bash quoting, and other similar best practices
This patch updates the shell scripts with some of the common best practices, which should make them more resilient to unusual failures and unexpected environments (in particular, directories with spaces). Most of these were identified by shellcheck.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# main gaps.
|
||||
|
||||
set -e
|
||||
. $(dirname ${0})/../util/lib.sh
|
||||
. "$(dirname "$0")/../util/lib.sh"
|
||||
|
||||
init
|
||||
check_hostaliases
|
||||
@@ -47,7 +47,7 @@ function launch_minidns() {
|
||||
kill $MINIDNS
|
||||
wait $MINIDNS || true
|
||||
fi
|
||||
cp $1 .zones
|
||||
cp "$1" .zones
|
||||
minidns_bg --addr=":9053" -zones=.zones >> .minidns.log 2>&1
|
||||
wait_until_ready 9053
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user