Fixed cron script when filename has spaces
This commit is contained in:
parent
1ccb63a6e2
commit
955f92ced0
2
cron.sh
2
cron.sh
@ -33,7 +33,7 @@ cd "$RUN_DIR"
|
|||||||
if [ ! -f "$LOG" ]; then
|
if [ ! -f "$LOG" ]; then
|
||||||
"$ENTRY"
|
"$ENTRY"
|
||||||
else
|
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"
|
"$ENTRY" -l "$LINE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user