aboutsummaryrefslogtreecommitdiff
path: root/tcwg-cleanup-stale-workspaces.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-cleanup-stale-workspaces.yaml')
-rw-r--r--tcwg-cleanup-stale-workspaces.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcwg-cleanup-stale-workspaces.yaml b/tcwg-cleanup-stale-workspaces.yaml
index d4eb7a1..def5672 100644
--- a/tcwg-cleanup-stale-workspaces.yaml
+++ b/tcwg-cleanup-stale-workspaces.yaml
@@ -78,7 +78,7 @@
fi
echo "du -hs report before:"
- du -hs $HOME/workspace/*
+ du -hs $HOME/workspace/* || true
# Semantics of find's mtime "+N" stands for N+1 days old or older.
days_1=$(($days-1))
@@ -87,7 +87,7 @@
rm_dirs=()
for dir in "${dirs[@]}"; do
- if ! find $dir -mtime -$days; then
+ if [ x"$(find $dir -mtime -$days)" = x"" ]; then
rm_dirs=("${rm_dirs[@]}" $dir)
fi
done
@@ -101,4 +101,4 @@
fi
echo "du -hs report after:"
- du -hs $HOME/workspace/*
+ du -hs $HOME/workspace/* || true