Browse Source

refactor: improve steamcmd dependency check

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.
pull/4390/head
Daniel Gibbs 2 years ago
parent
commit
553f984ac2
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 2
      lgsm/modules/check_deps.sh

2
lgsm/modules/check_deps.sh

@ -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.

Loading…
Cancel
Save