From d7e8557bb2b98f88abee7143193645087ca6fb4f Mon Sep 17 00:00:00 2001 From: Khai Do Date: Thu, 20 Feb 2014 14:07:11 -0800 Subject: [PATCH] fix conditional with mkdir -p There was an error in the conditional due to spacing (no space after the quotes). To fix it I decided to replace the conditional with simpler 'mkdir -p' command. Change-Id: I0f83e2823c69c5f9e3427e0925335e54e9b6c2a0 --- .../files/jenkins_job_builder/config/gerrit.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml b/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml index 91e6e57cc0..a4d757ba7f 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml @@ -104,10 +104,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: | @@ -146,10 +143,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: | @@ -184,10 +178,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: |