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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user