[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

@@ -27,7 +27,7 @@ replace_etc_environment_variable() {
local variable_value=$2
# modify /etc/environemnt in place by replacing a string that begins with variable_name
sudo sed -i -e "s%^${variable_name}=.*$%${variable_name}=\"${variable_value}\"%" /etc/environment
sudo sed -i -e "s%^${variable_name}=.*$%${variable_name}=${variable_value}%" /etc/environment
}
set_etc_environment_variable() {