summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/generic-includes.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh
index 983853a..43474af 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -25,8 +25,12 @@
function die
{
- echo "Install can not continue, cleaning up partial install"
- rm -rf "$TARGETDIR"
+ echo "Install can not continue"
+
+ if [ "$alwaysdiesafely" != "1" ]; then
+ echo "Cleaning up partial install"
+ rm -rf "$TARGETDIR"
+ fi
echo ""
echo "The install failed; sorry."