diff options
Diffstat (limited to 'scripts/install/install-image-new')
-rwxr-xr-x | scripts/install/install-image-new | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install/install-image-new b/scripts/install/install-image-new index 5c87c1ea..7965b939 100755 --- a/scripts/install/install-image-new +++ b/scripts/install/install-image-new @@ -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 "Image installation requires root privileges!" + exit 1 fi # source in the functions |