This commit is contained in:
Vince 2021-04-12 23:20:38 +08:00
parent 0b0c04e1cc
commit d2ff6f0bf1

View File

@ -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 ;;