mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
add brew git reset
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
# Fix permissions for Homebrew
|
||||
# https://github.com/actions/virtual-environments/issues/1568
|
||||
|
||||
# Reset brew repository directory to make the brew clean after chmoding /home
|
||||
cd $(brew --prefix)/Homebrew
|
||||
git reset --hard
|
||||
|
||||
brew_folder="/home/linuxbrew/"
|
||||
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user