We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcb87e commit 15e139bCopy full SHA for 15e139b
bin/build_container
@@ -36,7 +36,7 @@ if [ $NEED_SUDO -eq 0 ]; then
36
FAKEROOT=--fakeroot
37
echo "Using fakeroot"
38
else
39
- if [[ ! -z "$GITHUB_RUN_ID" || `groups` == *"sudo"* ]]; then
+ if [[ ! -z "$GITHUB_RUN_ID" || $(groups) =~ (^|[[:space:]])(sudo|wheel)([[:space:]]|$) ]]; then
40
# user has sudo permission
41
SUDO=sudo
42
FAKEROOT=""
0 commit comments