Commit f8592558 authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

ci: update signed-off-by with string comparison



Force use of string comparison to avoid issues comparing strings that
include specific characters like `[` and `]`, which are special symbols
and break the bash test.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 0779f4f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,10 +45,10 @@ for sha in $commits; do
  IFS=$'\n'
  for line in ${lines}; do
    stripped=$(echo $line | sed -e 's/^\s*//' | sed -e 's/\s*$//')
    if [[ ${stripped} == ${author} ]]; then
    if [[ "${stripped}" == "${author}" ]]; then
      found_author=true
    fi
    if [[ ${stripped} == ${committer} ]]; then
    if [[ "${stripped}" == "${committer}" ]]; then
      found_committer=true
    fi