From 955f92ced04c60e8c2ab5ff58bf35176213390f5 Mon Sep 17 00:00:00 2001 From: Anon Date: Fri, 19 May 2023 15:56:14 -0700 Subject: [PATCH] Fixed cron script when filename has spaces --- cron.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.sh b/cron.sh index cf57c99..6e5129c 100755 --- a/cron.sh +++ b/cron.sh @@ -33,7 +33,7 @@ cd "$RUN_DIR" if [ ! -f "$LOG" ]; then "$ENTRY" else - LINE="$(expr `grep "^Profile" "$LOG" | cut -d ' ' -f8 | tail -n 1` + 1)" + LINE="$(expr `grep "^Profile" "$LOG" | grep -o '[0-9]*$' | tail -n 1` + 1)" "$ENTRY" -l "$LINE" fi