fix check for root user
This commit is contained in:
parent
a5bd2cf369
commit
3aca5f7f96
|
@ -6,7 +6,7 @@
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
#
|
#
|
||||||
# must be root
|
# must be root
|
||||||
if [ "$USER" != "root" ]; then
|
if [ "${EUID}" -ne 0 ]; then
|
||||||
echo "You must be root to run this installer."
|
echo "You must be root to run this installer."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user