Commit d6c066d5 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Using printf instead of echo

parent d9eed54f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -46,9 +46,9 @@ while true; do
  fi

  echo "$response" | jq -c '.[]' | while read -r branch; do
    branch_name=$(echo "$branch" | jq -r '.name')
    is_protected=$(echo "$branch" | jq -r '.protected')
    last_commit_date=$(echo "$branch" | jq -r '.commit.committed_date')
    branch_name=$(printf '%s' "$branch" | jq -r '.name')
    is_protected=$(printf '%s' "$branch" | jq -r '.protected')
    last_commit_date=$(printf '%s' "$branch" | jq -r '.commit.committed_date')

    if [ "$is_protected" = "true" ]; then
      echo "Skipping protected branch: $branch_name"