mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
add brew git reset
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
# Fix permissions for Homebrew
|
# Fix permissions for Homebrew
|
||||||
# https://github.com/actions/virtual-environments/issues/1568
|
# 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/"
|
brew_folder="/home/linuxbrew/"
|
||||||
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)
|
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user