git.lucas.co / fontpreview
git clone https://git.lucas.co/fontpreview.git

commit178a66fd1896e6f12a727207c723fc2ee9dfe4fe
parent6d42ae4b72
authorMateusz Piotrowski <[email protected]>
date2020-02-11 11:37
Silence pgrep

 fontpreview | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fontpreview b/fontpreview
index 22aaf53..7c6522e 100755
--- a/fontpreview
+++ b/fontpreview
@@ -120,7 +120,7 @@ main(){
 
 	# Check for crashes of sxvi
 	elif [[ -f $PIDFILE ]] ; then
-	    if ! pgrep -F "$PIDFILE"; then
+	    if ! pgrep -F "$PIDFILE" >/dev/null 2>&1; then
 		echo "Restart sxvi - You maybe using a obsolete version. " >&2
 		# Display the font preview using sxiv
 		sxiv -g "$SIZE$POSITION" -N "fontpreview" -b "$FONT_PREVIEW" &