Run watch with exec.

This commit is contained in:
Darren 'Tadgy' Austin 2026-06-05 19:52:40 +01:00
commit f8f0a6b2f2

View file

@ -85,7 +85,7 @@ done
if (( WATCH_MODE == 1 )); then if (( WATCH_MODE == 1 )); then
export CHANGELOG_URL MAX_LINES export CHANGELOG_URL MAX_LINES
export -f colourise_CL export -f colourise_CL
watch -n "$REFRESH_INTERVAL" -t -c "$0 -u \"$CHANGELOG_URL\" -l \"$MAX_LINES\"" exec watch -n "$REFRESH_INTERVAL" -t -c "$0 -u \"$CHANGELOG_URL\" -l \"$MAX_LINES\""
exit $? exit $?
else else
colourise_CL colourise_CL