diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2020-11-24 14:56:23 -0600 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-11-24 21:57:55 +0100 |
commit | 7ed65dac7d4e082351ea1145534b6af69e4c3fcc (patch) | |
tree | 9e8dbbad61606725eaa50389ea2cac642c06e063 | |
parent | 2ebf50e36955fc9036924bc059212f6834dd83f0 (diff) |
ci-merge: do_remove_old add quotes in REMOTE_BRANCH
To avoid errors when more than one branch is get in REMOTE_BRANCH.
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rwxr-xr-x | ci-merge | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -443,7 +443,7 @@ do_remove_old() { # ignore commented lines echo $LINE | egrep -q '(^#|^\s*$|^\s*\t*#)' && continue - echo $LINE | grep -q "^$REMOTE_NAME\b" | grep -q $REMOTE_URL | grep -q $REMOTE_BRANCH + echo $LINE | grep -q "^$REMOTE_NAME\b" | grep -q $REMOTE_URL | grep -q "$REMOTE_BRANCH" if [ $? -eq 0 ]; then FOUND=1 fi |