summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 39173e8..740db80 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -609,7 +609,11 @@ CT_Extract() {
esac
# Some tarballs have read-only files... :-(
- chmod -R u+w "${basename}"
+ if [ "${nochdir}" = "nochdir" ]; then
+ chmod -R u+w .
+ else
+ chmod -R u+w "${basename}"
+ fi
touch "${CT_SRC_DIR}/.${basename}.extracted"