diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-01 17:04:00 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-01 17:04:00 +0000 |
commit | 3f4bf75a274e1774e99c85ba2fe544e42e8cd5ea (patch) | |
tree | e1ed8264cdd3be4d0d776b595cc1bb5dc1b30c3e /scripts/functions | |
parent | 534ee284bb8f3c670a5ddf0de8679f8e3eeffc3d (diff) | |
download | crosstool-ng-3f4bf75a274e1774e99c85ba2fe544e42e8cd5ea.tar.gz crosstool-ng-3f4bf75a274e1774e99c85ba2fe544e42e8cd5ea.tar.bz2 crosstool-ng-3f4bf75a274e1774e99c85ba2fe544e42e8cd5ea.zip |
Fix removing directories.
/trunk/scripts/functions | 7 4 3 0 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions index b3b216a2..d110f4dd 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 } |