From 2fb2d343736a5ee4855162a1aa50b00f286838ff Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 18 Jul 2018 19:18:19 +0100 Subject: [PATCH] Shellcheck --- lgsm/functions/install_logs.sh | 4 ++-- lgsm/functions/install_ts3db.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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