Explorar o código

added error check for touch consolelog

Daniel Gibbs %!s(int64=9) %!d(string=hai) anos
pai
achega
26269a04a8
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      lgsm/functions/install_logs.sh

+ 7 - 1
lgsm/functions/install_logs.sh

@@ -50,8 +50,14 @@ if [ -n "${consolelogdir}" ]; then
 	else
 		fn_print_ok_eol_nl
 	fi
-	echo -ne "creating console log:"
+	echo -ne "creating console log: ${consolelog}..."
 	touch "${consolelog}"
+	if [ $? -ne 0 ]; then
+	fn_print_fail_eol_nl
+	core_exit.sh
+	else
+		fn_print_ok_eol_nl
+	fi
 fi
 
 # Create Game logs