mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +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"
|
||||
|
||||
# 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 {
|
||||
|
||||
Reference in New Issue
Block a user