mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
[ubuntu] Refactor bash functions (#9055)
This commit is contained in:
committed by
GitHub
parent
d16bc5f120
commit
503ae89818
@@ -15,12 +15,12 @@ source $HELPER_SCRIPTS/install.sh
|
||||
# Invoke shellenv to make brew available during runnig session
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
|
||||
setEtcEnvironmentVariable HOMEBREW_NO_AUTO_UPDATE 1
|
||||
setEtcEnvironmentVariable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650
|
||||
set_etc_environment_variable HOMEBREW_NO_AUTO_UPDATE 1
|
||||
set_etc_environment_variable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650
|
||||
|
||||
# Validate the installation ad hoc
|
||||
echo "Validate the installation reloading /etc/environment"
|
||||
reloadEtcEnvironment
|
||||
reload_etc_environment
|
||||
|
||||
gfortran=$(brew --prefix)/bin/gfortran
|
||||
# Remove gfortran symlink, not to conflict with system gfortran
|
||||
|
||||
Reference in New Issue
Block a user