mirror of https://github.com/zulip/zulip.git
install: Fix shellcheck warnings.
In scripts/setup/install line 18: if [ $failed = 1 ]; then ^-- SC2086: Double quote to prevent globbing and word splitting. In scripts/setup/install line 19: echo -e "\033[0;31m" ^-- SC1117: Backslash is literal in "\0". Prefer explicit escaping: "\\0". In scripts/setup/install line 25: 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
bb19fed5a7
commit
edc5a7bdd0
|
@ -15,13 +15,13 @@ mkdir -p /var/log/zulip
|
||||||
"$(dirname "$(dirname "$0")")/lib/install" "$@" 2>&1 | tee -a /var/log/zulip/install.log
|
"$(dirname "$(dirname "$0")")/lib/install" "$@" 2>&1 | tee -a /var/log/zulip/install.log
|
||||||
failed=${PIPESTATUS[0]}
|
failed=${PIPESTATUS[0]}
|
||||||
|
|
||||||
if [ $failed = 1 ]; then
|
if [ "$failed" = 1 ]; then
|
||||||
echo -e "\033[0;31m"
|
echo -e '\033[0;31m'
|
||||||
echo "Zulip installation failed!"
|
echo "Zulip installation failed!"
|
||||||
echo
|
echo
|
||||||
echo -n "The install process is designed to be idempotent, so you can retry "
|
echo -n "The install process is designed to be idempotent, so you can retry "
|
||||||
echo -n "after resolving whatever issue caused the failure (there should be a traceback above). "
|
echo -n "after resolving whatever issue caused the failure (there should be a traceback above). "
|
||||||
echo -n "A log of this installation is available in /var/log/zulip/install.log"
|
echo -n "A log of this installation is available in /var/log/zulip/install.log"
|
||||||
echo -e "\033[0m"
|
echo -e '\033[0m'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue