diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-11-01 12:21:40 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-11-01 12:21:40 +0100 |
| commit | 8a00e0940e7bd94eec8b3fb6a82d0d626c860f5a (patch) | |
| tree | 89d3b9ade5aa5cf732d90f0c763831e389805ebf | |
| parent | dbfe84847a5f2f9cb56401374d26a914f3cf7c24 (diff) | |
| download | unterricht-8a00e0940e7bd94eec8b3fb6a82d0d626c860f5a.tar.gz unterricht-8a00e0940e7bd94eec8b3fb6a82d0d626c860f5a.zip | |
use brace group to write the peaclock config file
| -rwxr-xr-x | scripts/idw-timer | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/idw-timer b/scripts/idw-timer index ee3b68de..fcc66e5a 100755 --- a/scripts/idw-timer +++ b/scripts/idw-timer @@ -9,10 +9,12 @@ PEACLOCK_ARGS="-u $PEACLOCK_CONF" # Create a temporary peaclock timer config write_timer_conf() { - echo "set seconds on" > $PEACLOCK_CONF - echo "timer ${1}s" >> $PEACLOCK_CONF - echo "mode timer" >> $PEACLOCK_CONF - echo "timer start" >> $PEACLOCK_CONF + { + echo "set seconds on" + echo "timer ${1}s" + echo "mode timer" + echo "timer start" + } > "$PEACLOCK_CONF" } for f in "$1"/$PATTERN; do |
