Skip to content

Commit 0fee00e

Browse files
authored
fix(deps): steamcmd will be removed as a requirement is appid is missing (#3606)
1 parent 0ef3124 commit 0fee00e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lgsm/functions/check_deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ fn_check_loop(){
223223
# Checks if dependency is installed or not.
224224
fn_deps_detector(){
225225
## Check.
226-
# SteamCMD: Will be removed from required array if non-free repo is not available.
226+
# SteamCMD: Will be removed from required array if no appid is present or non-free repo is not available.
227227
# This will cause SteamCMD to be installed using tar.
228-
if [ "${deptocheck}" == "steamcmd" ]&&[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
228+
if [ -z "${appid}" ]||[ "${deptocheck}" == "steamcmd" ]&&[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
229229
array_deps_required=( "${array_deps_required[@]/steamcmd}" )
230230
steamcmdstatus=1
231231
# Java: Added for users using Oracle JRE to bypass check.
@@ -313,7 +313,7 @@ fi
313313
info_distro.sh
314314

315315
if [ ! -f "${tmpdir}/dependency-no-check.tmp" ]&&[ ! -f "${datadir}/${distroid}-${distroversioncsv}.csv" ]; then
316-
# Check that the disto dependency csv file exists.
316+
# Check that the distro dependency csv file exists.
317317
fn_check_file_github "lgsm/data" "${distroid}-${distroversioncsv}.csv"
318318
if [ -n "${checkflag}" ]&&[ "${checkflag}" == "0" ]; then
319319
fn_fetch_file_github "lgsm/data" "${distroid}-${distroversioncsv}.csv" "lgsm/data" "chmodx" "norun" "noforce" "nohash"

0 commit comments

Comments
 (0)