summaryrefslogtreecommitdiff
path: root/scripts/tarball.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tarball.sh')
-rwxr-xr-xscripts/tarball.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/tarball.sh b/scripts/tarball.sh
index febc2a6..8e6c312 100755
--- a/scripts/tarball.sh
+++ b/scripts/tarball.sh
@@ -92,5 +92,7 @@ CT_DoLog DEBUG "Getting rid of working directories"
rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2"
rm -rf "${tempdir}"
-# Render the install directory non-writable
-chmod u-w "${CT_PREFIX_DIR}"
+if [ "${CT_INSTALL_DIR_RO}" = "y" ]; then
+ # Render the install directory non-writable
+ chmod u-w "${CT_PREFIX_DIR}"
+fi