mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
install.sh: remove $INSTALL_DIR if installation failed.
This commit is contained in:
parent
a2491aa355
commit
02923aadc6
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ fi
|
||||||
mkdir -p "$INSTALL_DIR"/{bin,logs}
|
mkdir -p "$INSTALL_DIR"/{bin,logs}
|
||||||
make -e DESTDIR=$INSTALL_DIR PREFIX= CFGDIR= install install-scripts
|
make -e DESTDIR=$INSTALL_DIR PREFIX= CFGDIR= install install-scripts
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
rm -fr "$INSTALL_DIR"
|
||||||
echo -e "\033[31m!!\033[0m Installation failed"
|
echo -e "\033[31m!!\033[0m Installation failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue