Browse Source

Shellcheck

pull/1946/merge
Daniel Gibbs 7 years ago
parent
commit
2fb2d34373
  1. 4
      lgsm/functions/install_logs.sh
  2. 2
      lgsm/functions/install_ts3db.sh

4
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

2
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

Loading…
Cancel
Save