Remove files symlinked to /Library
Clean up /usr/local/bin symlinks to /Library that prevents "brew update" from succeeding.
This commit is contained in:
parent
f75592c5b8
commit
737b135809
1 changed files with 6 additions and 0 deletions
6
.github/workflows/cmake-builds.yml
vendored
6
.github/workflows/cmake-builds.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue