xbps-src: remove stupid check for uid == 0.
This is required to make xbps-src work with user namespaces.
This commit is contained in:
parent
a786acf4d2
commit
d7b027308d
5
xbps-src
5
xbps-src
|
@ -468,11 +468,6 @@ XBPS_TARGET_PKG="${2##*/}"
|
||||||
# Check if stdout is a tty; if false disable colors.
|
# Check if stdout is a tty; if false disable colors.
|
||||||
test -t 1 || export NOCOLORS=1
|
test -t 1 || export NOCOLORS=1
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
|
||||||
echo "ERROR: root cannot use xbps-src, switch to a regular user."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
|
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
|
||||||
export CHROOT_READY=1
|
export CHROOT_READY=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue