Skip to content

Commit

Permalink
Fix env passing (#18)
Browse files Browse the repository at this point in the history
* enter: filter out spaces in env; use for as before
  • Loading branch information
89luca89 authored Dec 7, 2021
1 parent dcc5cbe commit 6db2fc4
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 @@ -126,7 +126,7 @@ generate_command() {
echo "--interactive --tty --user=${USER} --workdir=${HOME}"
echo "--env=DISTROBOX_ENTER_PATH=$(command -v distrobox-enter)"
# exporting current environment to container
for i in $(printenv); do
for i in $(printenv | grep '=' | grep -v ' '); do
echo "--env=\"${i}\""
done
# run selected pod with command+args
Expand Down

0 comments on commit 6db2fc4

Please sign in to comment.