From 824a1def78588d734096ac15c1f50261b7685cd5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 1 Nov 2024 12:22:34 +0100 Subject: fix or ignore shellcheck hints --- scripts/idw-timer | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/idw-timer') diff --git a/scripts/idw-timer b/scripts/idw-timer index 21ec61a2..ca846077 100755 --- a/scripts/idw-timer +++ b/scripts/idw-timer @@ -21,14 +21,20 @@ for f in "$1"/$PATTERN; do xdg-open "$f" & write_timer_conf $THINK + # Explicit word expansion of PEACLOCK_ARGS is safe because + # PEACLOCK_CONF does not contain spaces + # shellcheck disable=SC2086 timeout --foreground $THINK peaclock $PEACLOCK_ARGS ffplay -autoexit -nodisp "$SOUND" 2>/dev/null write_timer_conf $PAIR + # shellcheck disable=SC2086 timeout --foreground $PAIR peaclock $PEACLOCK_ARGS ffplay -autoexit -nodisp "$SOUND" 2>/dev/null reset - read -p "next>" + read -rp "next>" + # Word splitting to expand all PIDs + # shellcheck disable=SC2046 kill $(jobs -p) done -- cgit v1.2.3