[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:
Shamil Mubarakshin
2024-02-14 12:09:49 +01:00
committed by GitHub
parent 8a4dc5b0f6
commit b33a106fb9
2 changed files with 2 additions and 2 deletions

View File

@@ -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