@ -8,7 +8,7 @@ package_temporary_dir="`pwd`/pkg-dist-tmp"
pkg_src_dir="`pwd`/pkg-src"
image_name="jellyfin-rpmbuild"
docker_sudo=""
if ! $(id -Gn | grep -q 'docker') && [ ! $EUID -eq 0 ]; then
if ! $(id -Gn | grep -q 'docker') && [ ! ${EUID:-1000} -eq 0 ] && [ ! $USER == "root" ]; then
docker_sudo=sudo
fi
@ -19,7 +19,7 @@ pkg_src_dir="`pwd`/pkg-src"
current_user="`whoami`"