Daniel Gibbs 10 лет назад
Родитель
Сommit
907ae11233
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lgsm/functions/core_exit.sh

+ 1 - 1
lgsm/functions/core_exit.sh

@@ -6,7 +6,7 @@ lgsm_version="210516"
 
 # Description: handles exiting of LGSM by running and reporting an exit code.
 
-if [ -n "${exitcode}" ]||[ "${exitcode}" != "0" ]; then
+if [ -n "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
 	if [ "${exitcode}" == "1" ]; then
 		fn_script_log_fatal "Exiting with code: ${exitcode}"
 	elif [ "${exitcode}" == "2" ]; then