summaryrefslogtreecommitdiff
path: root/tcwg-cleanup-stale-containers.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-04-19 11:06:32 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-04-19 11:13:11 +0000
commit89d2477fa06dd1052372e2b7b65b7a88ff9a8ebb (patch)
tree70706c8aa18f4df3eb384801dc27ceb8b3d4387f /tcwg-cleanup-stale-containers.sh
parent8ce693f094d2cc789aec0d4cc6ce191d816ae8d9 (diff)
tcwg-cleanup-stale-containers.sh: Fix typos.
Change-Id: I7519d6573aae3b95c304e821fcc5dcd40bfa6f58
Diffstat (limited to 'tcwg-cleanup-stale-containers.sh')
-rwxr-xr-xtcwg-cleanup-stale-containers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcwg-cleanup-stale-containers.sh b/tcwg-cleanup-stale-containers.sh
index 724eedb2..a3d27235 100755
--- a/tcwg-cleanup-stale-containers.sh
+++ b/tcwg-cleanup-stale-containers.sh
@@ -10,9 +10,9 @@ cleanup_volumes=false
cleanup_images=false
OPTS="`getopt -l cleanup-containers:,cleanup-images:,cleanup-volumes:,docker_ps_opts:,hours:,verbose: -- "$@"`"
-while test $# -gt 1; do
+while test $# -gt 0; do
case $1 in
- --cleanup-containters) cleanup_containers="$2"; shift ;;
+ --cleanup-containers) cleanup_containers="$2"; shift ;;
--cleanup-images) cleanup_images="$2"; shift ;;
--cleanup-volumes) cleanup_volumes="$2"; shift ;;
--docker_ps_opts) docker_ps_opts="$2"; shift ;;