From f305fdd2f89d67b894965d60e7fa0cbe990e0bf5 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Mon, 14 Feb 2022 14:16:28 +0000 Subject: [PATCH] chore: use old-style escaping for echoing This is so it works on macOS as well as Linux --- .ruby-version | 2 ++ bin/postal | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..12c4107e --- /dev/null +++ b/.ruby-version @@ -0,0 +1,2 @@ +2.6.9 + diff --git a/bin/postal b/bin/postal index e99ad74d..b113e2d4 100755 --- a/bin/postal +++ b/bin/postal @@ -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