mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
[ubuntu] Unify approach to /etc/environment (#8904)
* [ubuntu] Unify approach to /etc/environment * [ubuntu] fix typo in XDG_CONFIG_HOME name
This commit is contained in:
committed by
GitHub
parent
da1c04b81a
commit
435ba67550
@@ -4,6 +4,9 @@
|
||||
## Desc: Install Leiningen
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/etc-environment.sh
|
||||
|
||||
LEIN_BIN=/usr/local/bin/lein
|
||||
curl -fsSL https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > $LEIN_BIN
|
||||
chmod 0755 $LEIN_BIN
|
||||
@@ -13,7 +16,7 @@ export LEIN_HOME=/usr/local/lib/lein
|
||||
lein
|
||||
|
||||
LEIN_JAR=$(find $LEIN_HOME -name "leiningen-*-standalone.jar")
|
||||
echo "LEIN_JAR=$LEIN_JAR" | tee -a /etc/environment
|
||||
echo "LEIN_HOME=$LEIN_HOME" | tee -a /etc/environment
|
||||
setEtcEnvironmentVariable "LEIN_JAR" "${LEIN_JAR}"
|
||||
setEtcEnvironmentVariable "LEIN_HOME" "${LEIN_HOME}"
|
||||
|
||||
invoke_tests "Tools" "Leiningen"
|
||||
|
||||
Reference in New Issue
Block a user