Daniel Gibbs 10 lat temu
rodzic
commit
907ae11233
1 zmienionych plików z 1 dodań i 1 usunięć
  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