Fixed the extra : in jokes file.

This commit is contained in:
Storm Dragon
2025-10-27 01:02:20 -04:00
parent 278acc4d8f
commit d6825c4a92

View File

@@ -7,7 +7,7 @@ lastLine="$(grep -n '^exit 0' $0)"
lastLine=${lastLine%%:*}
lastLine=$((lastLine + 1))
# display a line from the end of the file after the script
msg "$2" "$(tail +${lastLine} "$0" | sed '/^$/d' | shuf -n1)":
msg "$2" "$(tail +${lastLine} "$0" | sed '/^$/d' | shuf -n1)"
# Put jokes after the exit, one per line.
exit 0