Skip to content

Commit

Permalink
Fix find call in darwin.sh in copy_brew_extensions on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 22, 2023
1 parent 10c12b9 commit e83e329
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ copy_brew_extensions() {
extension_file="${brew_prefix:?}/opt/$dependency/$(get_extension_from_formula "${dependency%@*}").so"
[ -e "$extension_file" ] && sudo cp "$extension_file" "$ext_dir"
done
sudo find -- "$brew_prefix"/Cellar/"$formula"@"$version" -name "*.dylib" -exec cp {} "$ext_dir" \;
if [ -d "$brew_prefix"/Cellar/"$formula"@"$version" ]; then
sudo find -- "$brew_prefix"/Cellar/"$formula"@"$version" -name "*.dylib" -exec cp {} "$ext_dir" \;
fi
}

# Function to install a php extension from shivammathur/extensions tap.
Expand Down

0 comments on commit e83e329

Please sign in to comment.