From fb55142b83ce8a003583e8a4c6360df618ce5ddc Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Fri, 5 Jul 2024 00:15:53 +0200 Subject: [PATCH] fix: Use pgrep instead of grepping ps output addresses shellcheck SC2009 --- src/script/arch-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 45305ff..895ff5c 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -759,7 +759,7 @@ case "${option}" in state_up_to_date fi - if ps -ef | grep "[a]rch-update-tray"; then + if pgrep -f arch-update-tray > /dev/null; then error_msg "$(eval_gettext "There's already a running instance of the Arch-Update systray applet")" exit 3 fi