Skip to content

Commit

Permalink
refactor: improve steamcmd dependency check
Browse files Browse the repository at this point in the history
The code in `check_deps.sh` has been refactored to improve the steamcmd dependency check. The condition for checking if the non-free repository is enabled in Debian has been updated to use a more accurate regular expression. This change ensures that the correct dependencies are required and improves the accuracy of the check.
  • Loading branch information
dgibbs64 committed Nov 25, 2023
1 parent 433444a commit 553f984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/modules/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fn_deps_detector() {
elif [ "${deptocheck}" == "steamcmd" ] && [ -z "${appid}" ]; then
array_deps_required=("${array_deps_required[@]/steamcmd/}")
steamcmdstatus=1
elif [ "${deptocheck}" == "steamcmd" ] && [ "${distroid}" == "debian" ] && ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
elif [ "${deptocheck}" == "steamcmd" ] && [ "${distroid}" == "debian" ] && ! grep -qE '[^deb]+non-free([^-]|$)' /etc/apt/sources.list; then
array_deps_required=("${array_deps_required[@]/steamcmd/}")
steamcmdstatus=1
# Java: Added for users using Oracle JRE to bypass check.
Expand Down

0 comments on commit 553f984

Please sign in to comment.