From f5624b21f93d3a19f2db922e9fb00c6a9ba0ebd1 Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Wed, 5 Jul 2017 16:43:26 +0200 Subject: [PATCH] Fix tools/cleanup-images script error When cleanup-images is launch without parameters the following error is triggered: ./cleanup-images: line 72: break: only meaningful in a `for', `while', or `until' loop This patch fix it. Change-Id: Ie8c63420a4e9b0d49a4e6be4172c8f0be912b556 Closes-Bug: #1702496 --- tools/cleanup-images | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cleanup-images b/tools/cleanup-images index 5d2c30f2ae..1a89673173 100755 --- a/tools/cleanup-images +++ b/tools/cleanup-images @@ -68,8 +68,9 @@ case "$1" in ;; (--) - shift - break + echo -e "Error: no argument passed\n" + usage + exit 0 ;; esac