add brew git reset

This commit is contained in:
Mikhail Timofeev
2020-11-06 02:05:48 +03:00
parent 397cd6cee7
commit adbd8a74dc

View File

@@ -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)