Skip to content

Commit

Permalink
chore: use old-style escaping for echoing
Browse files Browse the repository at this point in the history
This is so it works on macOS as well as Linux
  • Loading branch information
adamcooke committed Feb 14, 2022
1 parent e49ae56 commit f305fdd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2.6.9

24 changes: 12 additions & 12 deletions bin/postal
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,23 @@ case "$1" in
echo
echo "Server components:"
echo
echo -e " * \e[35mweb-server\e[0m - run the web server"
echo -e " * \e[35msmtp-server\e[0m - run the SMTP server"
echo -e " * \e[35mworker\e[0m - run a worker"
echo -e " * \e[35mcron\e[0m - run the cron process"
echo -e " * \e[35mrequeuer\e[0m - run the message requeuer"
echo -e " * \033[35mweb-server\033[0m - run the web server"
echo -e " * \033[35msmtp-server\033[0m - run the SMTP server"
echo -e " * \033[35mworker\033[0m - run a worker"
echo -e " * \033[35mcron\033[0m - run the cron process"
echo -e " * \033[35mrequeuer\033[0m - run the message requeuer"
echo
echo "Setup/upgrade tools:"
echo
echo -e " * \e[32minitialize\e[0m - create and load the DB schema"
echo -e " * \e[32mupgrade\e[0m - upgrade the DB schema"
echo -e " * \033[32minitialize\033[0m - create and load the DB schema"
echo -e " * \033[32mupgrade\033[0m - upgrade the DB schema"
echo
echo "Other tools:"
echo
echo -e " * \e[34mversion\e[0m - show the current Postal version"
echo -e " * \e[34mmake-user\e[0m - create a new global admin user"
echo -e " * \e[34mdefault-dkim-record\e[0m - display the default DKIM record"
echo -e " * \e[34mconsole\e[0m - open an interactive console"
echo -e " * \e[34mtest-app-smtp\e[0m - send a test message through Postal"
echo -e " * \033[34mversion\033[0m - show the current Postal version"
echo -e " * \033[34mmake-user\033[0m - create a new global admin user"
echo -e " * \033[34mdefault-dkim-record\033[0m - display the default DKIM record"
echo -e " * \033[34mconsole\033[0m - open an interactive console"
echo -e " * \033[34mtest-app-smtp\033[0m - send a test message through Postal"
echo
esac

0 comments on commit f305fdd

Please sign in to comment.