Browse Source

SC2046

pull/1863/head
Daniel Gibbs 7 years ago
parent
commit
4b577c4e58
  1. 2
      lgsm/functions/check_root.sh

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

Loading…
Cancel
Save