diff options
author | Nick White <git@njw.me.uk> | 2009-05-01 10:11:25 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2009-05-01 10:11:25 +0100 |
commit | ebdd12a60dfdb8db6976762653764f6b2533d9c9 (patch) | |
tree | 6e31272b9f85f91dc092f4776c4a50c7e5756275 /includes | |
parent | a6055bfb9b9847021ab93cddfdc31357b2c7fc38 (diff) | |
download | gemrb-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.sh | 8 |
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." |