diff --git a/lgsm/functions/install_logs.sh b/lgsm/functions/install_logs.sh index d0f2c3ba1..b962017ef 100644 --- a/lgsm/functions/install_logs.sh +++ b/lgsm/functions/install_logs.sh @@ -33,8 +33,8 @@ else fn_print_ok_eol_nl fi echo -ne "creating LinuxGSM log: ${lgsmlog}..." -touch "${lgsmlog}" -if [ $? -ne 0 ]; then + +if touch "${lgsmlog}"; then fn_print_fail_eol_nl core_exit.sh else diff --git a/lgsm/functions/install_ts3db.sh b/lgsm/functions/install_ts3db.sh index 09dac54b5..434d46179 100644 --- a/lgsm/functions/install_ts3db.sh +++ b/lgsm/functions/install_ts3db.sh @@ -15,7 +15,7 @@ fn_install_ts3db_mariadb(){ echo "=================================" sleep 0.5 - if ldd "${serverfiles}/libts3db_mariadb.so" | grep "libmariadb.so.2 => not found" + if ldd "${serverfiles}/libts3db_mariadb.so" | grep "libmariadb.so.2 => not found"; then echo "libmariadb2 not installed. Please install it first." echo "exiting..." exit