This fix ensures grep doesn't match the wrong word ref when the word
ref is used in commit message and instead greps for "ref" as returned
by curl.
Change-Id: I4e283c524c114150ddb6d4149928348efabfc7d7
echo "Info : Processing change $DEPENDENT_CHANGE_ID"
declare -a DEPENDENT_CHANGE_METADATA
readarray -t DEPENDENT_CHANGE_METADATA < <(curl -s "https://gerrit.nordix.org/changes/?q=$DEPENDENT_CHANGE_ID&o=CURRENT_REVISION" 2>&1 \
- | grep "project\|status\|current_revision\|ref.*," | sed -e 's/\s//g' -e 's/,//g' -e 's/"//g'| cut -d: -f2)
+ | grep "project\|status\|current_revision\|ref\".*," | sed -e 's/\s//g' -e 's/,//g' -e 's/"//g'| cut -d: -f2)
# NOTE (fdegir): check if the dependeny change exists
# and ignore if it doesn't