From 1554c0c0a029d76c3b7c2019f8330e1f049f6dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Sun, 2 Jan 2022 12:09:27 +0200 Subject: [PATCH] chore: fix typoed variable names in installation cleanup --- xo-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index ee3b4fa..a00d87a 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -894,9 +894,9 @@ function UpdateXO { local XO_WEB_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-web")" local XO_PROXY_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-proxy")" - for DELETEABLE in $INSTALLATIONS; do - if [[ "$XO_SERVER_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_WEB_ACTIVE" != "${DELETEABLE}"* ]] && [[ "$XO_PROXY_ACTIVE" != "${DELETEABLE}"* ]]; then - runcmd "rm -rf $DELETEABLE" + for DELETABLE in $INSTALLATIONS; do + if [[ "$XO_SERVER_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_WEB_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_PROXY_ACTIVE" != "${DELETABLE}"* ]]; then + runcmd "rm -rf $DELETABLE" fi done printok "Removing old inactive installations. Leaving $PRESERVE latest"