Skip to content

Commit 59a6ffd

Browse files
CopilotXmader
andauthored
Allow bottles without text placeholders
Co-authored-by: Xmader <16057139+Xmader@users.noreply.github.com>
1 parent 04d9392 commit 59a6ffd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cmake/macos-brew-deps.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ relocate_bottle() {
2929
cellar="$(brew --cellar)"
3030
_reloc() { local s="${1//@@HOMEBREW_PREFIX@@/$prefix}"; echo "${s//@@HOMEBREW_CELLAR@@/$cellar}"; }
3131
# text files (scripts, .pc, .cmake, clang config, ...)
32-
grep -rIl '@@HOMEBREW_' "$dir" 2>/dev/null | while IFS= read -r f; do
32+
while IFS= read -r f; do
3333
sed -i '' -e "s|@@HOMEBREW_PREFIX@@|$prefix|g" -e "s|@@HOMEBREW_CELLAR@@|$cellar|g" "$f"
34-
done
34+
done < <(grep -rIl '@@HOMEBREW_' "$dir" 2>/dev/null || true)
3535
# Mach-O files: dependent libraries, install names and rpaths
3636
find "$dir" -type f ! -type l | while IFS= read -r f; do
3737
file "$f" | grep -q 'Mach-O' || continue

0 commit comments

Comments
 (0)