Skip to content

Commit

Permalink
Update build_container
Browse files Browse the repository at this point in the history
Add sudo detection for github

Signed-off-by: dhower-qc <[email protected]>
  • Loading branch information
dhower-qc authored Jul 15, 2024
1 parent 4fc645c commit 5c21b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build_container
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ $NEED_SUDO -eq 0 ]; then
FAKEROOT=--fakeroot
echo "Using fakeroot"
else
if [[ `groups` == *"sudo"* ]]; then
if [[ ! -z "$GITHUB_RUN_ID" || `groups` == *"sudo"* ]]; then
# user has sudo permission
SUDO=sudo
FAKEROOT=""
Expand Down

0 comments on commit 5c21b83

Please sign in to comment.