mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[ubuntu] Remove quoted PATH from /etc/environment (#9347)
* [ubuntu] Remove quoted PATH from /etc/environment * Update quotes handling in replace_etc_environment_variable()
This commit is contained in:
committed by
GitHub
parent
8a4dc5b0f6
commit
b33a106fb9
@@ -20,7 +20,7 @@ chmod 755 $IMAGE_FOLDER
|
||||
ENVPATH=$(grep 'PATH=' /etc/environment | head -n 1 | sed -z 's/^PATH=*//')
|
||||
ENVPATH=${ENVPATH#"\""}
|
||||
ENVPATH=${ENVPATH%"\""}
|
||||
add_etc_environment_variable "PATH" "${ENVPATH}"
|
||||
replace_etc_environment_variable "PATH" "${ENVPATH}"
|
||||
echo "Updated /etc/environment: $(cat /etc/environment)"
|
||||
|
||||
# Сlean yarn and npm cache
|
||||
|
||||
Reference in New Issue
Block a user