Răsfoiți Sursa

added more to check.sh

Daniel Gibbs 10 ani în urmă
părinte
comite
56adabe6df
1 a modificat fișierele cu 15 adăugiri și 6 ștergeri
  1. 15 6
      functions/check.sh

+ 15 - 6
functions/check.sh

@@ -16,11 +16,11 @@ fn_module_compare() {
 
 check_root.sh
 
-if [ "${module}" != "install" ]; then
+if [ "${cmd}" != "install" ]; then
 	check_systemdir.sh
 fi
 
-no_check_logs=( details install map-compressor )
+no_check_logs=( debug details install map-compressor )
 fn_module_compare "${cmd}" "${no_check_logs[@]}"
 if [ $? != 0 ]; then
 	fn_check_logs
@@ -32,8 +32,17 @@ if [ $? != 0 ]; then
 	check_ip.sh
 fi
 
-fn_check_steamcmd
-fn_check_steamuser
-fn_check_tmux
+check_ip=( debug )
+fn_module_compare "${cmd}" "${no_check_logs[@]}"
+if [ $? != 0 ]; then
+	check_steamuser.sh
+	check_steamcmd.sh
+fi
+
+check_ip=( start )
+fn_module_compare "${cmd}" "${no_check_logs[@]}"
+if [ $? != 0 ]; then
+	check_tmux.sh
+fi
 
-fn_check_ts3status # may need to move out of checks
+#fn_check_ts3status # may need to move out of checks