Browse Source

SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

pull/1946/merge
Daniel Gibbs 7 years ago
parent
commit
685f51623c
  1. 4
      lgsm/functions/install_ts3db.sh

4
lgsm/functions/install_ts3db.sh

@ -14,8 +14,8 @@ fn_install_ts3db_mariadb(){
echo "checking if libmariadb2 is installed"
echo "================================="
sleep 0.5
ldd "${serverfiles}/libts3db_mariadb.so" | grep "libmariadb.so.2 => not found"
if [ $? -eq 0 ]; then
if ldd "${serverfiles}/libts3db_mariadb.so" | grep "libmariadb.so.2 => not found"
echo "libmariadb2 not installed. Please install it first."
echo "exiting..."
exit

Loading…
Cancel
Save