|
|
@@ -7,7 +7,7 @@
|
|
|
local commandname="CHECK"
|
|
|
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
|
|
-if [ $(whoami) = "root" ]; then
|
|
|
+if [ "$(whoami)" = "root" ]; then
|
|
|
fn_print_fail_nl "Do NOT run this script as root!"
|
|
|
if [ -d "${lgsmlogdir}" ]; then
|
|
|
fn_script_log_fatal "${selfname} attempted to run as root."
|