From c1042e89504c58be29e711f1a7e48fa74e7218c9 Mon Sep 17 00:00:00 2001 From: ronivay Date: Sun, 31 May 2020 00:22:19 +0300 Subject: [PATCH] add newlines when exiting because of error --- xo-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xo-install.sh b/xo-install.sh index 660fd81..8bbdc1b 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -82,9 +82,11 @@ function cmdlog { function ErrorHandling { + echo echo -e "${FAIL} Something went wrong, exiting. Check $LOGFILE for more details and use rollback feature if needed" if [[ -d $INSTALLDIR/xo-builds/xen-orchestra-$TIME ]]; then + echo echo -e "${FAIL} Removing $INSTALLDIR/xo-builds/xen-orchestra-$TIME because of failed installation." cmdlog "rm -rf $INSTALLDIR/xo-builds/xen-orchestra-$TIME" rm -rf $INSTALLDIR/xo-builds/xen-orchestra-$TIME >> $LOGFILE 2>&1