From d2ff6f0bf1a23b28c4f00864b9a88688f07e75f3 Mon Sep 17 00:00:00 2001 From: Vince Date: Mon, 12 Apr 2021 23:20:38 +0800 Subject: [PATCH] Fixed #181 --- tweaks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweaks.sh b/tweaks.sh index 69e60ee1..dd11bb37 100755 --- a/tweaks.sh +++ b/tweaks.sh @@ -74,7 +74,7 @@ while [[ $# -gt 0 ]]; do prompt -e "'${1}' ERROR: Firefox is installed but not yet initialized." prompt -w "'${1}': Don't forget to close it after you run/initialize it" has_any_error="true" - elif pgrep -x "firefox" &> /dev/null || pgrep -f "firefox" &> /dev/null; then + elif pidof "firefox" &> /dev/null; then prompt -e "'${1}' ERROR: Firefox is running, please close it" has_any_error="true" fi; shift ;;