From ebf888c342bbdf8d2d8af175974c378fc8968a7f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 30 Jul 2014 00:26:06 +0200 Subject: Replace login check with UID check in install-get-partition. --- scripts/install/install-get-partition | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition index f6ddb830..eee0dc73 100755 --- a/scripts/install/install-get-partition +++ b/scripts/install/install-get-partition @@ -1,8 +1,8 @@ #!/bin/bash -if [ `whoami` != 'root' ] ; then - echo "This script must be run with root privileges." - exit 1 +if [ $(id -u) != 0 ]; then + echo "Drive partitioning requires root privileges!" + exit 1 fi # this script will write the partition type, selected partition, and selected -- cgit v1.2.3