From 15006ab61d19a2481ba93d24d3adc7c7e007543a Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 16 Jun 2020 20:30:31 -0400 Subject: redirecting stderr to /dev/null stops an error if a user has never used clinte --- check_new_clinte_posts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_new_clinte_posts.sh b/check_new_clinte_posts.sh index 1d2dfbe..658d3be 100755 --- a/check_new_clinte_posts.sh +++ b/check_new_clinte_posts.sh @@ -1,7 +1,7 @@ #!/bin/sh LOCAL_FILE="$HOME/.clinte.json" -LOCAL_HASH=$(sha256sum "$LOCAL_FILE" | cut -d' ' -f1) +LOCAL_HASH=$(sha256sum "$LOCAL_FILE" 2>/dev/null | cut -d' ' -f1) DBFILE="/usr/local/clinte/clinte.json" DBFILE_HASH=$(sha256sum "$DBFILE" | cut -d' ' -f1) -- cgit 1.4.1-2-gfad0