mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Fix
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
export PATH="$PATH:/opt/pipx_bin"
|
# export PATH="$PATH:/opt/pipx_bin"
|
||||||
|
|
||||||
# Install yamlint
|
# Install yamlint
|
||||||
pipx install yamllint
|
pipx install yamllint
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
|
source $HELPER_SCRIPTS/etc-environment.sh
|
||||||
source $HELPER_SCRIPTS/os.sh
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
# Install Python, Python 3, pip, pip3
|
# Install Python, Python 3, pip, pip3
|
||||||
@@ -26,8 +27,12 @@ export PIPX_HOME=/opt/pipx
|
|||||||
python3 -m pip install pipx
|
python3 -m pip install pipx
|
||||||
python3 -m pipx ensurepath
|
python3 -m pipx ensurepath
|
||||||
|
|
||||||
echo "PIPX_BIN_DIR=$PIPX_BIN_DIR" | tee -a /etc/environment
|
# Update /etc/environment
|
||||||
echo "PIPX_HOME=$PIPX_HOME" | tee -a /etc/environment
|
setEtcEnvironmentVariable "PIPX_BIN_DIR" $PIPX_BIN_DIR
|
||||||
|
setEtcEnvironmentVariable "PIPX_HOME" $PIPX_HOME
|
||||||
|
prependEtcEnvironmentPath /opt/pipx_bin
|
||||||
|
# echo "PIPX_BIN_DIR=$PIPX_BIN_DIR" | tee -a /etc/environment
|
||||||
|
# echo "PIPX_HOME=$PIPX_HOME" | tee -a /etc/environment
|
||||||
|
|
||||||
# Add pipx bin directory to path
|
# Add pipx bin directory to path
|
||||||
# export PATH="$PATH:$PIPX_BIN_DIR"
|
# export PATH="$PATH:$PIPX_BIN_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user