Fix "Fix handling of ZUUL_CHANGES"

We need quotes here in order to successfully detect empty strings.

Change-Id: I02accd55ab946f771a533670a9f810409ef03b90
This commit is contained in:
Jens Harbott 2017-10-05 09:43:52 +00:00
parent 1f6fb5605b
commit 382a9db497
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ cookbook_projects=""
for cookbook_info in "${cookbooks[@]}"; do
[[ $cookbook_info =~ openstack/([a-z-]*):.* ]]
cookbook_name="${BASH_REMATCH[1]}"
if [ -n $cookbook_name ]; then
if [ -n "$cookbook_name" ]; then
cookbook_projects+=" openstack/$cookbook_name"
sed -i -e "s|github: [\"\']openstack/$cookbook_name[\"\']|path: '../$cookbook_name'|" Berksfile
fi