Quiet grep in eac_workaround()

This commit is contained in:
the-sane 2022-10-15 16:00:18 -04:00
parent 652c2fa4a0
commit 8f857476d0

View File

@ -1460,8 +1460,8 @@ eac_workaround() {
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
# Check if EAC workaround is already applied
if grep "$eac_hosts" /etc/hosts; then
if grep "^$eac_hosts" /etc/hosts; then
if grep -q "$eac_hosts" /etc/hosts; then
if grep -q "^$eac_hosts" /etc/hosts; then
message info "The Easy Anti-Cheat workaround has already been applied.\nYou're all set!"
else
message info "The Easy Anti-Cheat workaround has already been applied, but may be commented out.\nNo changes have been made, please edit /etc/hosts manually."