make the pronoun text a little easier to see, and remove the unnecessary '---' in that case. also change \the input text to direct the user how to enter stuff.

This commit is contained in:
konomo 2021-11-06 20:34:31 +00:00
parent 4e19836ac2
commit eb2f90b96d
2 changed files with 8 additions and 3 deletions

View File

@ -13,3 +13,4 @@ copy it into your gemini directory and make it executable of course
* 2021-10-19: thrown through shellcheck
* 2021-11-05: added pronoun selector. add ";" and your preferred pronouns into the name field to see only those
* 2021-11-06: made each sentence a list item for easier reading
* 2021-11-06: make the pronoun text a little easier to see, and remove the unnecessary '---' in that case. also change the input text to direct the user how to enter stuff.

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [[ -z "$QUERY_STRING" ]]; then
printf "10 Please enter your name!\r\n"
printf "10 Please enter your name. You may add ; and your preferred pronoun\r\n"
fi
name=$QUERY_STRING
pronouns=""
@ -32,7 +32,7 @@ if [[ "${pronouns}" != "" ]]; then
fi
((cnt++))
done
printf ", the pronouns are %s\n" "$pronouns"
printf " (%s)\n" "$pronouns"
else
printf "\n"
fi
@ -43,10 +43,14 @@ for i in "${pr_sub[@]}"; do
if [[ "${setnumber}" != 999 ]]; then
if [[ "${setnumber}" != "${cnt}" ]]; then
((cnt++))
#printf "%s:\n---\n" "$i"
continue
fi
fi
printf "%s:\n---\n" "$i"
if [[ "${setnumber}" == 999 ]]; then
printf "%s:\n---\n" "$i"
fi
for j in "${sentences[@]}"; do
cursent="${j}"