magic-pax: fix root logic

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-01-12 14:26:02 -05:00
parent 0077cb3866
commit 03e7e7ab54

View file

@ -8,9 +8,9 @@ if [ -z "${USERID}" ] && [ -n "$(id -ru)" ]; then
USERID="$(id -ru)"
fi
if [ -n "${USERID}" ] && [ "${USERID}" != "0" ]; then
ROOT=yes
elif [ -z "${USERID}" ]; then
ROOT=no
elif [ -z "${USERID}" ]; then
ROOT=yes
fi
#usage check