diff --git a/Makefile b/Makefile index 4d7ec55..aa83a9f 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ ARCH?= amd64 SMOLI386= netbsd-SMOLi386 DIST= https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-${VERS}/latest/${ARCH}/binary KDIST= ${DIST} -SUDO!= [ "$(id -u)" = "0" ] || command -v doas || echo "sudo -E ARCH=${ARCH} VERS=${VERS}" +SUDO!= [ "$(whoami)" = "root" ] || command -v doas || echo "sudo -E ARCH=${ARCH} VERS=${VERS}" WHOAMI!= whoami USER!= id -un GROUP!= id -gn