Skip to content

Commit cd412ed

Browse files
committed
fix: correct some errant variable references
Signed-off-by: Sam Stuewe <[email protected]>
1 parent 0337155 commit cd412ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/native-system-benchmark.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ on_int() {
179179
printf 'Interrupting all components\n'
180180
trap '' SIGINT # avoid interrupting ourself
181181
for i in $PIDS; do # intentionally unquoted
182-
if [[ -n "RECORD" ]]; then
182+
if [[ -n "$RECORD" ]]; then
183183
kill -SIGINT -- "-$i"
184184
else
185185
kill -SIGINT -- "$i"
@@ -220,7 +220,7 @@ on_int() {
220220

221221
printf 'Terminating any remaining processes\n'
222222
for i in $PIDS; do # intentionally unquoted
223-
if [[ -n "RECORD" ]]; then
223+
if [[ -n "$RECORD" ]]; then
224224
kill -SIGTERM -- "-$i"
225225
else
226226
kill -SIGTERM -- "$i"
@@ -350,7 +350,7 @@ launch() {
350350
"$RT"/scripts/wait-for-it.sh -q -t 5 -h localhost -p "$ep"
351351
done
352352
printf 'Launched logical %s %d, replica %d [PID: %d]\n' "$1" "$id" "$node" "$PID"
353-
if [[ -n "RECORD" ]]; then
353+
if [[ -n "$RECORD" ]]; then
354354
PIDS="$PIDS $(getpgid $PID)"
355355
else
356356
PIDS="$PIDS $PID"
@@ -363,7 +363,7 @@ launch() {
363363
"$RT"/scripts/wait-for-it.sh -q -t 5 -h localhost -p "$ep"
364364
done
365365
printf 'Launched %s %d [PID: %d]\n' "$1" "$id" "$PID"
366-
if [[ -n "RECORD" ]]; then
366+
if [[ -n "$RECORD" ]]; then
367367
PIDS="$PIDS $(getpgid $PID)"
368368
else
369369
PIDS="$PIDS $PID"

0 commit comments

Comments
 (0)