git clone https://git.lucas.co/fontpreview.git
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" &