diff options
Diffstat (limited to 'scripts')
| -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 |
