mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 05:22:06 +08:00
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
|
||||
# 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user