Fix unbound variable error in detect-new-fmas-in-pr.sh (#36613)

This commit is contained in:
Allen Houchins 2025-12-08 10:37:36 -06:00 committed by GitHub
parent ee1be26878
commit 33a1d82f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,11 @@ extract_slugs_from_changed_manifests() {
done <<< "$changed_files"
# Remove duplicates and sort
printf '%s\n' "${slugs[@]}" | sort -u
if [ ${#slugs[@]} -eq 0 ]; then
echo ""
else
printf '%s\n' "${slugs[@]}" | sort -u
fi
}
# Get changed files in outputs directory