Skip to content

Commit 9598fcc

Browse files
authored
fix(install): non-free is now correctly detected (#4390)
Debian has added non-free-firmware repo. This was being detected alongside non-free and causing issues with steamcmd installation. this fix ensures non-free is only detected.
1 parent 433444a commit 9598fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/check_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ fn_deps_detector() {
252252
elif [ "${deptocheck}" == "steamcmd" ] && [ -z "${appid}" ]; then
253253
array_deps_required=("${array_deps_required[@]/steamcmd/}")
254254
steamcmdstatus=1
255-
elif [ "${deptocheck}" == "steamcmd" ] && [ "${distroid}" == "debian" ] && ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
255+
elif [ "${deptocheck}" == "steamcmd" ] && [ "${distroid}" == "debian" ] && ! grep -qE '[^deb]+non-free([^-]|$)' /etc/apt/sources.list; then
256256
array_deps_required=("${array_deps_required[@]/steamcmd/}")
257257
steamcmdstatus=1
258258
# Java: Added for users using Oracle JRE to bypass check.

0 commit comments

Comments
 (0)