Przeglądaj źródła

fix: change exitcode to 0 if dependency install was successful

Daniel Gibbs 1 rok temu
rodzic
commit
5c31f33446
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      lgsm/modules/check_deps.sh

+ 2 - 1
lgsm/modules/check_deps.sh

@@ -195,9 +195,10 @@ fn_install_missing_deps() {
 			fi
 			fi
 			autodepinstall="$?"
 			autodepinstall="$?"
 
 
-			# If auto install passes remove steamcmd install failure.
+			# If auto install passes, remove steamcmd install failure and set exit code to 0.
 			if [ "${autodepinstall}" == "0" ]; then
 			if [ "${autodepinstall}" == "0" ]; then
 				unset steamcmdfail
 				unset steamcmdfail
+				exitcode=0
 			fi
 			fi
 		fi
 		fi