aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/unix/timer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/unix/timer.sh')
-rwxr-xr-xbin/unix/timer.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/unix/timer.sh b/bin/unix/timer.sh
index b4f48c5..b7f941e 100755
--- a/bin/unix/timer.sh
+++ b/bin/unix/timer.sh
@@ -8,6 +8,8 @@ SIGNAL=${1:-SIGTERM}
8COMMAND_START="$2" 8COMMAND_START="$2"
9COMMAND_EXIT="$3" 9COMMAND_EXIT="$3"
10 10
11[ -n "$COLOR" ] && echo -en "\e[${COLOR}m"
12
11# If SIGNAL is received, switch to next display 13# If SIGNAL is received, switch to next display
12trap 'next_display' "$SIGNAL" 14trap 'next_display' "$SIGNAL"
13# Use SIGTSTP (Ctrl-Z in most of the cases) to stop/restart timer 15# Use SIGTSTP (Ctrl-Z in most of the cases) to stop/restart timer