Skip to content

Commit

Permalink
CI: update CI for new rootful password setup
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
  • Loading branch information
89luca89 committed Aug 6, 2023
1 parent 315b9f2 commit 6c315c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ jobs:
# Ensure distrobox export works:
- name: Distrobox export - sudo
if: matrix.container_manager != 'docker'
shell: 'script -q -e -c "bash {0}"'
run: |
image=${{ matrix.distribution }}
Expand Down
6 changes: 3 additions & 3 deletions distrobox-export
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ fi
#
if [ "${is_login}" -ne 0 ]; then
if [ "${is_sudo}" -ne 0 ]; then
start_shell="$(command -v sudo) -i"
start_shell="$(command -v sudo) -S -i"
else
start_shell="$(command -v sudo) -u ${USER} -i"
start_shell="$(command -v sudo) -S -u ${USER} -i"
fi
elif [ "${is_sudo}" -ne 0 ]; then
start_shell="$(command -v sudo)"
start_shell="$(command -v sudo) -S"
else
start_shell=""
fi
Expand Down

0 comments on commit 6c315c5

Please sign in to comment.