Skip to content

Commit e8f032a

Browse files
committed
Fix linking
1 parent f96e84a commit e8f032a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/darwin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ add_php() {
190190
brew install --only-dependencies "$php_formula"
191191
brew install -f --overwrite "$php_formula" 2>/dev/null || brew upgrade -f --overwrite "$php_formula"
192192
fi
193-
brew link --force --overwrite "$php_keg"
193+
brew link --force --overwrite "$php_keg" || (sudo chown -R "$(id -un)":"$(id -gn)" "$brew_prefix" && brew link --force --overwrite "$php_keg")
194194
}
195195

196196
# Function to get formula suffix

0 commit comments

Comments
 (0)