Fixed the extra : in jokes file.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user