From 985e3d080b550c77cc8d04ccea18165597c99848 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 23 Apr 2023 21:42:15 +0000 Subject: [PATCH] Remove resetDNSMsg --- README.md | 4 ++-- go.mod | 2 +- main.go | 10 ---------- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6ea302e..b0fd469 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ This is a Go implementation of the Python-written [concentration](https://github ## Installation ```bash -go install git.envs.net/hyperreal/go-hyperfocus@latest +go install codeberg.org/hyperreal/hyperfocus@latest ``` ## Usage ```bash -sudo go-hyperfocus --help +sudo hyperfocus --help ``` [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/N4N2CT2JG) diff --git a/go.mod b/go.mod index 7e1d066..e69cc0b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.envs.net/hyperreal/go-hyperfocus +module codeberg.org/hyperreal/hyperfocus go 1.17 diff --git a/main.go b/main.go index c2592cc..914162e 100644 --- a/main.go +++ b/main.go @@ -91,13 +91,6 @@ func isRoot() bool { // Disables access to websites that are defined as 'distractors' func improveFocus() { - var displayMsg bool = false - - // If first run, display resetDNSMsg - if !fileExists(localFilePaths["hostsBackup"]) { - displayMsg = true - } - // Backup host file if a backup does not already exist if !fileExists(localFilePaths["hostsBackup"]) { if err := copyFile(localFilePaths["hosts"], localFilePaths["hostsBackup"]); err != nil { @@ -180,9 +173,6 @@ func improveFocus() { } fmt.Println("Focus is now improved 😊") - if displayMsg { - fmt.Println(resetDNSMsg) - } } // Enables access to websites that are defined as 'distractors'