From 1eb0eda96ace25d81fdf1f34d9177da50c3e0fa9 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Tue, 16 Apr 2024 18:47:01 +0200 Subject: Fixes --- gromo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gromo') diff --git a/gromo b/gromo index f5da8d9..22f9daf 100755 --- a/gromo +++ b/gromo @@ -171,6 +171,8 @@ pp_seconds() { fi } +[ -f "$DING_FILE" ] || curl $DEFAULT_DING --create-dirs -so "$DING_FILE" + optspec="1hxltd:s:" while getopts "$optspec" optchar; do case "$optchar" in @@ -216,8 +218,6 @@ fi mkdir -p "$DATA_DIR" "$TODAY_DIR" "$(dirname "$STATE_FILE")" -[ -f "$DING_FILE" ] || curl $DEFAULT_DING --create-dirs -so "$DING_FILE" - if [ -f "$STATE_FILE" ]; then echo "Another instance is currently running; exiting (remove $STATE_FILE to override)" exit 1 -- cgit v1.2.3