Skip to content

Commit

Permalink
enter: remove possible strange env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Dec 15, 2021
1 parent 175abb6 commit 0f21c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-enter
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ generate_command() {
# and export them to the container.
set +o xtrace
# disable logging fot this snippet, or it will be too talkative.
for i in $(printenv | grep '=' | grep -v ' '); do
for i in $(printenv | grep '=' | grep -v ' ' | grep -v '"'); do
result_command="${result_command} --env=\"${i}\""
done
# re-enable logging if it was enabled previously.
Expand Down

0 comments on commit 0f21c16

Please sign in to comment.