summaryrefslogtreecommitdiff
path: root/tcwg-cleanup-stale-containers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-cleanup-stale-containers.sh')
-rwxr-xr-xtcwg-cleanup-stale-containers.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcwg-cleanup-stale-containers.sh b/tcwg-cleanup-stale-containers.sh
index 2b1a87c8..854c4233 100755
--- a/tcwg-cleanup-stale-containers.sh
+++ b/tcwg-cleanup-stale-containers.sh
@@ -109,7 +109,9 @@ do_cleanup_containers ()
;;
esac
fi
- rm_containers=("${rm_containers[@]}" "$container")
+ if [ -n "$container" ]; then
+ rm_containers=("${rm_containers[@]}" "$container")
+ fi
fi
done