Remove files symlinked to /Library

Clean up /usr/local/bin symlinks to /Library that prevents "brew update"
from succeeding.
This commit is contained in:
B. Scott Michel 2023-10-22 12:17:46 -07:00 committed by B. Scott Michel
parent f75592c5b8
commit 737b135809

View file

@ -46,6 +46,12 @@ jobs:
os: [macos-12, macos-11] os: [macos-12, macos-11]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
## For some reason, the macos-11 image has symlinks to /Library in /usr/local/bin
- name: Clean /usr/local/bin symlinks
run: |
for f in $(find /usr/local/bin -type l -print); do \
(readlink $f | grep -q -s "/Library") && echo Removing "$f" && rm -f "$f"; \
done || exit 0
- name: Install dependencies - name: Install dependencies
run: | run: |
sh -ex .travis/deps.sh osx sh -ex .travis/deps.sh osx