Daniel Gibbs преди 8 години
родител
ревизия
4b577c4e58
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lgsm/functions/check_root.sh

+ 1 - 1
lgsm/functions/check_root.sh

@@ -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."