From c03af6f32e3dcb36c421598f9e086d3ebba19242 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 7 Apr 2023 04:40:24 -0700 Subject: [PATCH] sleep-until: add sleep time output to dry --- .config/shell/bin/sleep-until | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/shell/bin/sleep-until b/.config/shell/bin/sleep-until index 68e65d3..8955a5e 100755 --- a/.config/shell/bin/sleep-until +++ b/.config/shell/bin/sleep-until @@ -11,6 +11,8 @@ if [ -n "$1" ] && date --date="$*" > /dev/null 2>&1; then echo "Sleeping until: $(date --date="$*") (${SLEEP_TIME}s)" if ! "$DRY"; then sleep "$SLEEP_TIME" + else + echo "$SLEEP_TIME" fi else echo "Error: input date '$*' is in the past" >&2