@@ -179,7 +179,7 @@ on_int() {
179
179
printf ' Interrupting all components\n'
180
180
trap ' ' SIGINT # avoid interrupting ourself
181
181
for i in $PIDS ; do # intentionally unquoted
182
- if [[ -n " RECORD" ]]; then
182
+ if [[ -n " $ RECORD" ]]; then
183
183
kill -SIGINT -- " -$i "
184
184
else
185
185
kill -SIGINT -- " $i "
@@ -220,7 +220,7 @@ on_int() {
220
220
221
221
printf ' Terminating any remaining processes\n'
222
222
for i in $PIDS ; do # intentionally unquoted
223
- if [[ -n " RECORD" ]]; then
223
+ if [[ -n " $ RECORD" ]]; then
224
224
kill -SIGTERM -- " -$i "
225
225
else
226
226
kill -SIGTERM -- " $i "
@@ -350,7 +350,7 @@ launch() {
350
350
" $RT " /scripts/wait-for-it.sh -q -t 5 -h localhost -p " $ep "
351
351
done
352
352
printf ' Launched logical %s %d, replica %d [PID: %d]\n' " $1 " " $id " " $node " " $PID "
353
- if [[ -n " RECORD" ]]; then
353
+ if [[ -n " $ RECORD" ]]; then
354
354
PIDS=" $PIDS $( getpgid $PID ) "
355
355
else
356
356
PIDS=" $PIDS $PID "
@@ -363,7 +363,7 @@ launch() {
363
363
" $RT " /scripts/wait-for-it.sh -q -t 5 -h localhost -p " $ep "
364
364
done
365
365
printf ' Launched %s %d [PID: %d]\n' " $1 " " $id " " $PID "
366
- if [[ -n " RECORD" ]]; then
366
+ if [[ -n " $ RECORD" ]]; then
367
367
PIDS=" $PIDS $( getpgid $PID ) "
368
368
else
369
369
PIDS=" $PIDS $PID "
0 commit comments