summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-05-01 10:11:25 +0100
committerNick White <git@njw.me.uk>2009-05-01 10:11:25 +0100
commitebdd12a60dfdb8db6976762653764f6b2533d9c9 (patch)
tree6e31272b9f85f91dc092f4776c4a50c7e5756275 /includes
parenta6055bfb9b9847021ab93cddfdc31357b2c7fc38 (diff)
downloadgemrb-gameinstallers-ebdd12a60dfdb8db6976762653764f6b2533d9c9.tar.bz2
gemrb-gameinstallers-ebdd12a60dfdb8db6976762653764f6b2533d9c9.zip
Add a few more anti-clobbering protections
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."