2026-06-26 07:23:52 +00:00
|
|
|
#!/usr/bin/env bash
|
2026-07-02 02:07:32 +00:00
|
|
|
# Optional: pre-check GitHub mirror availability (default mirror see ios/offline_pods.rb)
|
2026-06-26 07:23:52 +00:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
MIRROR="${COCOAPODS_GITHUB_MIRROR:-https://ghproxy.net/https://github.com}"
|
|
|
|
|
TEST_URL="${MIRROR}/google/double-conversion.git"
|
|
|
|
|
|
|
|
|
|
echo "Checking CocoaPods GitHub mirror..."
|
|
|
|
|
if git ls-remote "$TEST_URL" HEAD >/dev/null 2>&1; then
|
|
|
|
|
echo "✓ Mirror OK: $MIRROR"
|
|
|
|
|
else
|
|
|
|
|
echo "✗ Mirror unreachable: $MIRROR"
|
|
|
|
|
echo " Try: export COCOAPODS_GITHUB_MIRROR='https://mirror.ghproxy.com/https://github.com'"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|