1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix xcode-select
This commit is contained in:
Ilija Tovilo
2025-12-13 20:30:09 +01:00

View File

@@ -8,7 +8,7 @@ runs:
label=$((softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1) || echo '')
if [ -n "$label" ]; then
softwareupdate -i "$label"
xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | head -1)
xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | sort -r | head -1)
sudo xcode-select -s "/Applications/$xcode_path"
else
echo "Not found."