From ecdbdd0be60eba520ba69c3e65df6e8c810db4bb Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Sun, 31 Jan 2021 15:27:43 +0100 Subject: [PATCH] first commit --- statserver_json.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/statserver_json.sh b/statserver_json.sh index 53510f8..c31bd1f 100755 --- a/statserver_json.sh +++ b/statserver_json.sh @@ -44,14 +44,6 @@ DB_NAME="" # ls ${statserver} ######################## -if [ ! -r "$statserver" ]; then - echo " ⛔Error:"${statserver}" doesn't exits" - exit 1 -#else -#echo -e "$statserver exist" -fi - - if [ -d ${pathd}/${varMod} ] then echo " ✅ Directory ${pathd}/${varMod} exist!" @@ -59,10 +51,17 @@ else mkdir -p ${pathd}/${varMod} echo " ✅ Directory ${pathd}/${varMod} CREATED ✅" fi +exit 1 + +if [ ! -r "$statserver" ]; then + echo " ⛔Error:"${statserver}" doesn't exits" + exit 1 +fi exit 1 +########################## not use insert_mysql_down() { numplayers="0"