From 590bcb25006b43dbee4af8f0701f5e9807e71ced Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Sat, 21 Jul 2018 11:04:02 +0200 Subject: [PATCH] Do not exit for details if IP is not set Fixes #1385 --- lgsm/functions/check_ip.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/check_ip.sh b/lgsm/functions/check_ip.sh index 2be87cef3..47f14de4e 100644 --- a/lgsm/functions/check_ip.sh +++ b/lgsm/functions/check_ip.sh @@ -53,8 +53,13 @@ if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travi echo -en "\n" echo -en "https://linuxgsm.com/network-interfaces\n" echo -en "" - fn_script_log_fatal "https://linuxgsm.com/network-interfaces\n" - core_exit.sh + # Do not exit for details and postdetails commands + if [ "${commandaction}" != "Details" ]&&[ "${commandaction}" != "Postdetails" ]; then + fn_script_log_fatal "https://linuxgsm.com/network-interfaces\n" + core_exit.sh + else + ip="NOT SET" + fi # Single interface elif [ "${ipsetinconfig}" == "1" ]; then fn_print_fail "Check IP: IP address not set in game config."