Resolve shellcheck SC2116 useless echo
[releng/global-jjb.git] / shell / gerrit-fetch-dependencies.sh
index 24542e9..ed42596 100644 (file)
@@ -39,7 +39,7 @@ set -u
 # End git-review workaround
 
 projects=()
-for patch in $(echo "${PATCHES[@]}"); do
+for patch in "${PATCHES[@]}"; do
     json=$(curl -s "$GERRIT_URL/changes/$patch" | sed -e "s/)]}'//")
     project=$(echo "$json" | jq -r '.project')
     branch=$(echo "$json" | jq -r '.branch')