From 4cdf77a295bc62466a24c7a2aabd893b4bd09554 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 27 Apr 2023 17:13:50 +0800 Subject: Update --- bin/unix/timer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/unix/timer.sh') diff --git a/bin/unix/timer.sh b/bin/unix/timer.sh index ac89c52..c87a836 100755 --- a/bin/unix/timer.sh +++ b/bin/unix/timer.sh @@ -81,7 +81,7 @@ timer() { done } -trap 'exec 1>&3; [ -n "COMMAND_EXIT" ] && eval "$COMMAND_EXIT" && unset COMMAND_EXIT; date >>/tmp/timer.sh; echo $(trap -l $1 | cut -f 2 -d" ") >>/tmp/timer.sh' EXIT HUP +trap 'exec 1>&3; [ -n "COMMAND_EXIT" ] && eval "$COMMAND_EXIT" && unset COMMAND_EXIT; echo `date` $1 >>/tmp/timer.sh; ' EXIT HUP while [ $count -lt $SET ]; do [ $stop = true ] && sleep 0.3 && continue -- cgit v1.2.3-70-g09d2