From ba907c44bf7895f1e133926177f05dd12620b08b Mon Sep 17 00:00:00 2001 From: Termuellinator Date: Mon, 20 Jun 2022 15:00:35 +0200 Subject: [PATCH] check if EAC-Workaround is commented out --- lug-helper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 8ae4a8e..127c210 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1448,7 +1448,11 @@ eac_workaround() { # Check if EAC workaround is already applied if grep "$eac_hosts" /etc/hosts; then - message info "The Easy Anti-Cheat workaround has already been applied.\nYou're all set!" + if grep "^$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 is commented out.\nNo changes have been made, please edit /etc/hosts manually!" + fi return 1 fi