1
0
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:
Alberto Bertogli
2022-11-13 00:37:28 +00:00
parent e2481b07a9
commit 948cee1ce1
32 changed files with 133 additions and 126 deletions

View File

@@ -1,16 +1,16 @@
#!/bin/bash
set -e
. $(dirname ${0})/util/lib.sh
. "$(dirname "$0")/util/lib.sh"
init
FAILED=0
for i in stress-*; do
echo $i ...
setsid -w $i/run.sh
FAILED=$(( $FAILED + $? ))
echo "$i ..."
setsid -w "$i/run.sh"
FAILED=$(( FAILED + $? ))
echo
done