summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-01 17:04:00 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-01 17:04:00 (GMT)
commit3f4bf75a274e1774e99c85ba2fe544e42e8cd5ea (patch)
treee1ed8264cdd3be4d0d776b595cc1bb5dc1b30c3e /scripts
parent534ee284bb8f3c670a5ddf0de8679f8e3eeffc3d (diff)
Fix removing directories.
/trunk/scripts/functions | 7 4 3 0 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions
index b3b216a..d110f4d 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -249,10 +249,11 @@ CT_DoForceRmdir() {
local mode
for dir in "${@}"; do
[ -d "${dir}" ] || continue
- mode="$(stat -c '%a' "${dir}")"
- CT_DoExecLog ALL chmod -R u+w "$(dirname "${dir}")"
+ mode="$(stat -c '%a' "$(dirname "${dir}")")"
+ CT_DoExecLog ALL chmod u+w "$(dirname "${dir}")"
+ CT_DoExecLog ALL chmod -R u+w "${dir}"
CT_DoExecLog ALL rm -rf "${dir}"
- CT_DoExecLog ALL chmod -R ${mode} "$(dirname "${dir}")"
+ CT_DoExecLog ALL chmod ${mode} "$(dirname "${dir}")"
done
}