diff options
| author | Steven Dake <stdake@cisco.com> | 2015-02-23 12:45:20 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-02-23 12:46:18 -0700 |
| commit | cebbd9fb7b306f32b47146a2be0f67fecd7e61a1 (patch) | |
| tree | 39735070e71e167a8138699135b3b3e9a050fe22 | |
| parent | 04f70c5d7b5e53fa24a03da8d7ce4818aa746a72 (diff) | |
| download | kolla-cebbd9fb7b306f32b47146a2be0f67fecd7e61a1.tar.gz kolla-cebbd9fb7b306f32b47146a2be0f67fecd7e61a1.zip | |
Quote array index with -n so -n works properly
For some reason -n doesn't work with arrays, probably becuase
the array has an entry by the array's indexed value is empty.
By quoting it we get it as one unit, which behaves as expected.
Change-Id: Ic3243d13d3f8fc9978c460f816e33ad348302d8e
| -rwxr-xr-x | tools/build-all-docker-images | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build-all-docker-images b/tools/build-all-docker-images index 0f2ba03cb..5f016f72c 100755 --- a/tools/build-all-docker-images +++ b/tools/build-all-docker-images @@ -80,7 +80,7 @@ function init_image { function process_image { local image=$1 - if [ -n ${dependency[$image]} ]; then + if [ -n "${dependency[$image]}" ]; then process_image ${dependency[$image]} fi if requires_build $image; then |
