Browse Source

standard error output

main
deicidus 1 year ago
parent
commit
c446f22201
  1. 2
      spells/cantrips/ask_yn

2
spells/cantrips/ask_yn

@ -26,7 +26,7 @@ if [ -z "$answer" ]; then
fi fi
# Print the answer and return appropriate exit code # Print the answer and return appropriate exit code
printf "%s\n" "$(echo $answer | tr a-z A-Z)" printf "%s\n" "$(echo $answer | tr a-z A-Z" >&2
if [ "$answer" = "Y" -o "$answer" = "y" ]; then if [ "$answer" = "Y" -o "$answer" = "y" ]; then
exit 0 exit 0
else else

Loading…
Cancel
Save