Skip to content

Commit 994a9ab

Browse files
authored
fix(deps): prevent steamcmd showing as a required when it is not (#3633)
* fix(deps): prevent steamcmd showing as a required when it is not repeat issue. Looks like I got the if statement wrong. * further improvements to if statement
1 parent 3d175b4 commit 994a9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/functions/check_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fn_deps_detector(){
225225
## Check.
226226
# 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 [ -z "${appid}" ]||[ "${deptocheck}" == "steamcmd" ]&&[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
228+
if [ "${deptocheck}" == "steamcmd" ]&&[ -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.

0 commit comments

Comments
 (0)