Fixed cron script when filename has spaces

This commit is contained in:
Anon 2023-05-19 15:56:14 -07:00
parent 1ccb63a6e2
commit 955f92ced0

View File

@ -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