From bb19fed5a7ecaf3e043f9cc8be789fb4c12bf5e0 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 3 Aug 2018 00:14:47 +0000 Subject: [PATCH] initialize-database: Fix shellcheck warnings. In scripts/setup/initialize-database line 38: echo -e "\033[32mPopulating default database failed." ^-- SC1117: Backslash is literal in "\0". Prefer explicit escaping: "\\0". In scripts/setup/initialize-database line 42: echo -e "\033[0m" ^-- SC1117: Backslash is literal in "\0". Prefer explicit escaping: "\\0". Signed-off-by: Anders Kaseorg --- scripts/setup/initialize-database | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup/initialize-database b/scripts/setup/initialize-database index 762d2cf00f..6bdee18b53 100755 --- a/scripts/setup/initialize-database +++ b/scripts/setup/initialize-database @@ -35,11 +35,11 @@ cd "$THIS_DIR/../.." if ! ./manage.py initialize_voyager_db; then set +x echo - echo -e "\033[32mPopulating default database failed." + echo -e '\033[32mPopulating default database failed.' echo "After you fix the problem, you will need to do the following before rerunning this:" echo " * supervisorctl stop all # to stop all services that might be accessing the database" echo " * scripts/setup/postgres-init-db # run as root to drop and re-create the database" - echo -e "\033[0m" + echo -e '\033[0m' exit 1 fi