File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,11 @@ link_libraries() {
235
235
formula=$1
236
236
formula_prefix=" $( brew --prefix " $formula " ) "
237
237
sudo mkdir -p " $formula_prefix " /lib
238
- sudo cp -a " $formula_prefix " /lib/* .dylib " $brew_prefix /lib" 2> /dev/null || true
238
+ for lib in " $formula_prefix " /lib/* .dylib; do
239
+ lib_name=$( basename " $lib " )
240
+ sudo cp -a " $lib " " $brew_prefix /lib/old_$lib_name " 2> /dev/null || true
241
+ sudo ln -sf " $brew_prefix /lib/old_$lib_name " " $brew_prefix /lib/$lib_name "
242
+ done
239
243
}
240
244
241
245
# Function to update dependencies
@@ -244,7 +248,7 @@ update_dependencies() {
244
248
while read -r formula; do
245
249
(
246
250
curl -o " $tap_dir /homebrew/homebrew-core/Formula/$formula .rb" " ${curl_opts[@]} " " https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$formula .rb"
247
- link_libraries $formula
251
+ link_libraries " $formula "
248
252
) &
249
253
to_wait+=( $! )
250
254
done < " $tap_dir /shivammathur/homebrew-php/.github/deps/${ImageOS:? } _${ImageVersion:? } "
You can’t perform that action at this time.
0 commit comments