Browse Source

Move subdomain question one step earlier

master
Matt Baer 4 years ago
parent
commit
d156f06132
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      text-to-image.sh

+ 6
- 6
text-to-image.sh View File

@@ -27,12 +27,6 @@ if [ -z "$author" ]; then
read -p "Author/username []? " author
fi

read -p "Post content []? " msg
if [ -z "$msg" ]; then
echo "Need some kind of content. Bye."
exit 1
fi

read -p "Subdomain (y/N)? " answer
case ${answer:0:1} in
y|Y )
@@ -43,6 +37,12 @@ case ${answer:0:1} in
;;
esac

read -p "Post content []? " msg
if [ -z "$msg" ]; then
echo "Need some kind of content. Bye."
exit 1
fi

echo "Thanks. Generating image..."

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"


Loading…
Cancel
Save