diff options
-rwxr-xr-x | scripts/install/install-get-partition | 6 |
1 files 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 |