mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 07:46:57 +00:00
[Ubuntu] homebrew: remove double quotes around env vars (#3984)
This commit is contained in:
committed by
GitHub
parent
d2c7eb1dfa
commit
a8c8a73ad1
@@ -15,7 +15,7 @@ brew_shellenv="/home/linuxbrew/.linuxbrew/bin/brew shellenv"
|
||||
|
||||
# Update /etc/environment
|
||||
## Put HOMEBREW_* variables.
|
||||
$brew_shellenv | grep 'export HOMEBREW' | sed -E 's/^export (.*);$/\1/' | sudo tee -a /etc/environment
|
||||
$brew_shellenv | grep 'export HOMEBREW' | sed -E 's/^export (.*);$/\1/' | tr -d '"' | sudo tee -a /etc/environment
|
||||
# add brew executables locations to PATH
|
||||
brew_path=$($brew_shellenv | grep '^export PATH' | sed -E 's/^export PATH="([^$]+)\$.*/\1/')
|
||||
prependEtcEnvironmentPath "$brew_path"
|
||||
|
||||
Reference in New Issue
Block a user