diff options
| author | Bertrand Lallau <bertrand.lallau@thalesgroup.com> | 2017-07-05 16:43:26 +0200 |
|---|---|---|
| committer | Bertrand Lallau <bertrand.lallau@gmail.com> | 2017-07-10 13:53:23 +0000 |
| commit | f5624b21f93d3a19f2db922e9fb00c6a9ba0ebd1 (patch) | |
| tree | b5c195ea01db3a6325db95a4cc032fb5e1d1e910 /tools/cleanup-images | |
| parent | f5d06eb9c1004a28fc59d75caf6d35a8b659703d (diff) | |
| download | kolla-ansible-f5624b21f93d3a19f2db922e9fb00c6a9ba0ebd1.tar.gz kolla-ansible-f5624b21f93d3a19f2db922e9fb00c6a9ba0ebd1.zip | |
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
Diffstat (limited to 'tools/cleanup-images')
| -rwxr-xr-x | tools/cleanup-images | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/cleanup-images b/tools/cleanup-images index 5d2c30f2a..1a8967317 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 |
