From 02923aadc6f3560173df4cc7e5e083a0f91f0ae4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 22 Jan 2024 14:43:02 +0100 Subject: [PATCH] install.sh: remove $INSTALL_DIR if installation failed. --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index fe4a358..a1d4c12 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,7 @@ fi mkdir -p "$INSTALL_DIR"/{bin,logs} make -e DESTDIR=$INSTALL_DIR PREFIX= CFGDIR= install install-scripts if [ $? -ne 0 ]; then + rm -fr "$INSTALL_DIR" echo -e "\033[31m!!\033[0m Installation failed" exit 1 fi