1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

install.sh: remove $INSTALL_DIR if installation failed.

This commit is contained in:
Henrik Hautakoski 2024-01-22 14:43:02 +01:00
parent a2491aa355
commit 02923aadc6

View file

@ -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