mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 07:46:45 +00:00
Don\'t create backup sed file (#792)
Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
@@ -26,7 +26,7 @@ function replaceEtcEnvironmentVariable {
|
|||||||
variable_value="$2"
|
variable_value="$2"
|
||||||
|
|
||||||
# modify /etc/environemnt in place by replacing a string that begins with variable_name
|
# modify /etc/environemnt in place by replacing a string that begins with variable_name
|
||||||
sudo sed -ie "s%^${variable_name}=.*$%${variable_name}=\"${variable_value}\"%" /etc/environment
|
sudo sed -i -e "s%^${variable_name}=.*$%${variable_name}=\"${variable_value}\"%" /etc/environment
|
||||||
}
|
}
|
||||||
|
|
||||||
function setEtcEnvironmentVariable {
|
function setEtcEnvironmentVariable {
|
||||||
|
|||||||
Reference in New Issue
Block a user