@@ -157,7 +157,7 @@
# ensure sudo user
- if [ "$(sudo whoami)" != "root" ] ; then
+ if [ "$(whoami)" != "root" ] ; then
echo "Error: This script requires 'sudo' privileges in order to write to disk & mount media."
@@ -48,8 +48,8 @@
- # ensure user
+ # ensure sudo user
existing check was useless as it checked does sudo works correctly not is script running under sudo.
Pull-Request has been merged by pbrobinson