diff --git a/lgsm/modules/core_modules.sh b/lgsm/modules/core_modules.sh index 825a0a0ab0..c860d3eae7 100644 --- a/lgsm/modules/core_modules.sh +++ b/lgsm/modules/core_modules.sh @@ -816,6 +816,11 @@ if [ ! -d "${lockdir}" ]; then mkdir -p "${lockdir}" fi +# if $USER id missing set to whoami +if [ -z "${USER}" ]; then + USER="$(whoami)" +fi + # Calls on-screen messages (bootstrap) core_messages.sh