From 80881f7d36dc0507622b51116a3e808f7aef256a Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Sat, 29 Apr 2017 05:47:35 +0000 Subject: tcwg-cleanup-stale-workspaces.sh: Robustify against non-exec directories ... which glibc testsuite can create. Change-Id: I14c5fea97eb9a11572fd6c31b8a3b328757fec4b --- tcwg-cleanup-stale-workspaces.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tcwg-cleanup-stale-workspaces.sh b/tcwg-cleanup-stale-workspaces.sh index f30c0908..af1c21bf 100755 --- a/tcwg-cleanup-stale-workspaces.sh +++ b/tcwg-cleanup-stale-workspaces.sh @@ -51,6 +51,10 @@ if [ ${#rm_dirs[@]} != 0 ]; then ls -ld "${rm_dirs[@]}" du -hs "${rm_dirs[@]}" if ! $dry_run; then + # Make sure we can get into all subdirectories. + # Glibc tests can leave behind "rw-" directories, the contents of which + # can't be cleaned up without "x" permission bit. + chmod -R +rwx "${rm_dirs[@]}" rm -rf "${rm_dirs[@]}" else echo "DRY_RUN: NOT REMOVING DIRECTORIES" -- cgit v1.2.3