We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Within etc-environment.sh there is the following sed command: https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/helpers/etc-environment.sh#L29
etc-environment.sh
sed
sudo sed -ie "s%^${variable_name}=.*$%${variable_name}=\"${variable_value}\"%" /etc/environment
The -ie has the effect of backing up the file with an e suffix. Was this deliberate?
-ie
e
root@897f04685dc1:/# ls /etc/environment* /etc/environment /etc/environmente root@897f04685dc1:/# diff /etc/environment /etc/environmente 1c1 < PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" --- > PATH="/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Area for Triage: Deployments/Release
Question, Bug, or Feature?: Question
Virtual environments affected
Expected behavior Either .bak or no suffix.
.bak
Actual behavior Unexpected file in /etc.
/etc
The text was updated successfully, but these errors were encountered:
@rbellamy Thanks for your note, the fix is applied in the PR #792 and will be deployed in a week or two
Sorry, something went wrong.
The fix deployed to the production
dsame
No branches or pull requests
Describe the bug
Within
etc-environment.sh
there is the followingsed
command:https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/helpers/etc-environment.sh#L29
sudo sed -ie "s%^${variable_name}=.*$%${variable_name}=\"${variable_value}\"%" /etc/environment
The
-ie
has the effect of backing up the file with ane
suffix. Was this deliberate?Area for Triage:
Deployments/Release
Question, Bug, or Feature?:
Question
Virtual environments affected
Expected behavior
Either
.bak
or no suffix.Actual behavior
Unexpected file in
/etc
.The text was updated successfully, but these errors were encountered: