Skip to content

Commit bb32269

Browse files
committed
fix
1 parent 5dc35f6 commit bb32269

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setup_quickstart_spm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ update_spm_dependency() {
150150
# For release testing, find the latest CocoaPods tag.
151151
local latest_tag
152152
latest_tag=$(git -C "$root_dir" tag -l "CocoaPods-*" --sort=-v:refname | \
153-
awk '/^CocoaPods-[0-9]+\.[0-9]+\.[0-9]+$/ { print; exit }')
153+
grep -E '^CocoaPods-[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
154154
if [[ -z "$latest_tag" ]]; then
155155
echo "Error: Could not find a 'CocoaPods-X.Y.Z' tag." >&2
156156
exit 1
@@ -214,8 +214,8 @@ main() {
214214
source "$scripts_dir/check_secrets.sh"
215215

216216
# Some quickstarts may not need a real GoogleService-Info.plist for their
217-
# tests. When QUICKSTART_REPO is set, we are running locally and should skip
218-
# the secrets check.
217+
# tests. When QUICKSTART_REPO is set (for local runs) or BYPASS_SECRET_CHECK
218+
# is true, the secrets check is skipped.
219219
if [[ -z "${QUICKSTART_REPO:-}" ]] && \
220220
[[ "${BYPASS_SECRET_CHECK:-}" != "true" ]] && \
221221
! check_secrets && \

0 commit comments

Comments
 (0)