Merge pull request #1996 from miketimofeev/fix-brew-permissions

[Ubuntu] Reset homebrew git repository to restore file permissions
This commit is contained in:
Maxim Lobanov
2020-11-06 14:39:24 +03:00
committed by GitHub

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 --repo)
git reset --hard
brew_folder="/home/linuxbrew/"
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)