commit 673757418077915f344efe8e99929412e0f7d837
parent 5b834abd725ababf57bed7fda697267596963cf0
Author: Léo Villeveygoux <l@vgx.fr>
Date: Fri, 29 Apr 2022 03:10:21 +0200
Always print time-to-wakeup
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/timerat b/timerat
@@ -25,8 +25,8 @@ if [ "$WAIT" -lt 0 ] ; then
elif [ "$WAIT" -le 0 ] ; then
echo "Can't wake up in the past! (wait: $WAIT sec)" >&2
exit 1
-else
- echo "Waking up in $(date -ud "@$WAIT" +%T)"
fi
+echo "Waking up in $(date -ud "@$WAIT" +%T)"
+
timer "$WAIT" "$2"