Fix the bug ignore the user provided message

A bug was introduced in commit 1fc82b6, when word wrapping was
introduced. The script was ignoring the user provided message.
What made it hang waiting for user input.

The bug is fixed now. Who could imagine that just a pair of quote
marks could break the script like that...
This commit is contained in:
Lucas Possatti
2015-06-24 10:56:53 -03:00
parent a23a8c3d52
commit 640e61366b

View File

@@ -116,9 +116,9 @@ pokemon_name="${filename%.*}"
# Call cowsay or cowthink.
if [ -n "$THINK" ]; then
cowthink -f "$pokemon_cow" "$word_wrap" "$MESSAGE"
cowthink -f "$pokemon_cow" $word_wrap $MESSAGE
else
cowsay -f "$pokemon_cow" "$word_wrap" "$MESSAGE"
cowsay -f "$pokemon_cow" $word_wrap $MESSAGE
fi
# Write the pokemon name, unless requested otherwise.