summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-19 07:38:32 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-19 07:38:32 (GMT)
commitfd268ea38bc8448e841fde35fcd11740a32492bb (patch)
tree2e1c36d00cc55852d9605cb8a43ac2f2755254e1 /scripts/functions
parentf920df9c09851148be297628691bab5ea9f8d062 (diff)
Fix extracting tarballs.
/trunk/scripts/functions | 6 5 1 0 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Diffstat (limited to 'scripts/functions')
-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"