Merge pull request #1996 from miketimofeev/fix-brew-permissions
[Ubuntu] Reset homebrew git repository to restore file permissions
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 --repo)
|
||||||
|
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