mirror of https://github.com/zulip/zulip.git
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 <andersk@mit.edu>
This commit is contained in:
parent
68261c7e29
commit
bb19fed5a7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue