X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-configure-clouds.sh;h=ed03f5c3745a5870bf9f6bd1bb86df80677a4406;hb=4c33fa8dbddaa9d32450e786ddb466eb0efa5a0e;hp=3f7dd6a5bf3433ca0bf68ed7abf6d36fa922c4eb;hpb=961ef4327102f60f1d81e91b73027f032e144d6e;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-configure-clouds.sh b/shell/jenkins-configure-clouds.sh index 3f7dd6a5..ed03f5c3 100644 --- a/shell/jenkins-configure-clouds.sh +++ b/shell/jenkins-configure-clouds.sh @@ -63,7 +63,7 @@ get_cfg() { exit 1 fi - cfg=$(grep "${setting^^}" "$cfg_file" | tail -1 | awk -F'=' '{print $2}') + cfg=$(grep "^${setting^^}=" "$cfg_file" | tail -1 | awk -F'=' '{print $2}') cfg=${cfg:-"$default"} echo "$cfg" }