aboutsummaryrefslogtreecommitdiff
path: root/scripts/idw-timer
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-11-01 12:22:34 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-11-01 12:22:34 +0100
commit824a1def78588d734096ac15c1f50261b7685cd5 (patch)
tree87ef24b5625044b2117eaf69a18635b33d8fd74c /scripts/idw-timer
parent235a2b8b61bb2d39706f674be568394028498ec3 (diff)
downloadunterricht-824a1def78588d734096ac15c1f50261b7685cd5.tar.gz
unterricht-824a1def78588d734096ac15c1f50261b7685cd5.zip
fix or ignore shellcheck hints
Diffstat (limited to 'scripts/idw-timer')
-rwxr-xr-xscripts/idw-timer8
1 files changed, 7 insertions, 1 deletions
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