From 8f857476d053b20048ef9d7e678b0916d7ca8c70 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 15 Oct 2022 16:00:18 -0400 Subject: [PATCH] Quiet grep in eac_workaround() --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 8eade65..3ccb615 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -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."