Skip to content

Commit

Permalink
fix: Use pgrep instead of grepping ps output
Browse files Browse the repository at this point in the history
addresses shellcheck SC2009
  • Loading branch information
Antiz96 committed Jul 4, 2024
1 parent 62f2492 commit fb55142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb55142

Please sign in to comment.