Skip to content

Commit

Permalink
tweak bash wrappers to better preserve calling environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming committed Jul 3, 2024
1 parent af29a4a commit b9c980b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uenv-impl
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def generate_start_command(args, env, env_vars):
env_vars.set_scalar("UENV_MOUNT_FILE", f"{main_mount[0]}")
env_vars.set_scalar("UENV_MOUNT_POINT", f"{main_mount[1]}")

return [f"squashfs-mount {mount_string} -- $UENV_WRAPPER_CMD bash",
return [f"squashfs-mount {mount_string} -- $UENV_WRAPPER_CMD bash --norc --noprofile",
"local _exitcode=$?",]

def generate_view_command(args, env, env_vars):
Expand Down
2 changes: 1 addition & 1 deletion uenv-wrapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash -i

set -e

Expand Down

0 comments on commit b9c980b

Please sign in to comment.