mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: Fix xcode-select
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user