Added macOS to the docker sudo exception
This commit is contained in:
parent
f2d0d1f646
commit
6a3ed5d519
|
@ -8,7 +8,8 @@ package_temporary_dir="`pwd`/pkg-dist-tmp"
|
||||||
pkg_src_dir="`pwd`/pkg-src"
|
pkg_src_dir="`pwd`/pkg-src"
|
||||||
image_name="jellyfin-rpmbuild"
|
image_name="jellyfin-rpmbuild"
|
||||||
docker_sudo=""
|
docker_sudo=""
|
||||||
if ! $(id -Gn | grep -q 'docker') && [ ! ${EUID:-1000} -eq 0 ] && [ ! $USER == "root" ]; then
|
if ! $(id -Gn | grep -q 'docker') && [ ! ${EUID:-1000} -eq 0 ] && \
|
||||||
|
[ ! $USER == "root" ] && ! $(echo "$OSTYPE" | grep -q "darwin"); then
|
||||||
docker_sudo=sudo
|
docker_sudo=sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,8 @@ pkg_src_dir="`pwd`/pkg-src"
|
||||||
current_user="`whoami`"
|
current_user="`whoami`"
|
||||||
image_name="jellyfin-rpmbuild"
|
image_name="jellyfin-rpmbuild"
|
||||||
docker_sudo=""
|
docker_sudo=""
|
||||||
if ! $(id -Gn | grep -q 'docker') && [ ! ${EUID:-1000} -eq 0 ] && [ ! $USER == "root" ]; then
|
if ! $(id -Gn | grep -q 'docker') && [ ! ${EUID:-1000} -eq 0 ] && \
|
||||||
|
[ ! $USER == "root" ] && ! $(echo "$OSTYPE" | grep -q "darwin"); then
|
||||||
docker_sudo=sudo
|
docker_sudo=sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user