From 3601e4f8a6100c4146b8b94f77322a4e2657452b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 18 Jun 2018 17:39:15 -0700 Subject: [PATCH] if -> while --- scripts/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 92eb6e433..67f17e342 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -95,7 +95,7 @@ fi echo "==> installer: update cloudron-syslog" CLOUDRON_SYSLOG_DIR=/usr/local/cloudron-syslog -if [[ "$($CLOUDRON_SYSLOG_DIR/bin/cloudron-syslog --version)" != "1.0.2" ]]; then +while [[ "$($CLOUDRON_SYSLOG_DIR/bin/cloudron-syslog --version)" != "1.0.2" ]]; then rm -rf "${CLOUDRON_SYSLOG_DIR}" mkdir -p "${CLOUDRON_SYSLOG_DIR}" if npm install --unsafe-perm -g --prefix "${CLOUDRON_SYSLOG_DIR}" cloudron-syslog@1.0.2; then break; fi