diff --git a/lgsm/functions/install_logs.sh b/lgsm/functions/install_logs.sh index dfa25e8a4..f7591af22 100644 --- a/lgsm/functions/install_logs.sh +++ b/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