X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-push-patch.sh;h=8bddfa9db94b5dccd1a3fc206afe72a78174965f;hb=1591cbc2cf8a6cd9591cf95ef7460ff1d17feffd;hp=d0a77fe1079ab15c9f3a42746582c45cb0285a34;hpb=f105e37a3e42a2d1503d621464a556b8baaa57b0;p=releng%2Fglobal-jjb.git diff --git a/shell/gerrit-push-patch.sh b/shell/gerrit-push-patch.sh index d0a77fe1..8bddfa9d 100644 --- a/shell/gerrit-push-patch.sh +++ b/shell/gerrit-push-patch.sh @@ -44,11 +44,17 @@ set -u # End git-review workaround # Remove any leading or trailing quotes surrounding the strings # which can cause parse errors when passed as CLI options to commands +# shellcheck disable=SC2001 PROJECT="$(echo "$PROJECT" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" +# shellcheck disable=SC2001 GERRIT_COMMIT_MESSAGE="$(echo "$GERRIT_COMMIT_MESSAGE" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" +# shellcheck disable=SC2001 GERRIT_HOST="$(echo "$GERRIT_HOST" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" +# shellcheck disable=SC2001 GERRIT_TOPIC="$(echo "$GERRIT_TOPIC" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" +# shellcheck disable=SC2001 GERRIT_USER="$(echo "$GERRIT_USER" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" +# shellcheck disable=SC2001 REVIEWERS_EMAIL="$(echo "$REVIEWERS_EMAIL" | sed "s/^\([\"']\)\(.*\)\1\$/\2/g")" job=$JOB_NAME/$BUILD_NUMBER