diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-06-16 20:30:31 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-06-16 20:30:31 -0400 |
commit | 15006ab61d19a2481ba93d24d3adc7c7e007543a (patch) | |
tree | 6846206bba98396d8f28db4f6eb89476a5b10aed | |
parent | 1e51bf9ab5a4bdd828300e92e97f709d150f0ef5 (diff) | |
download | clinte-15006ab61d19a2481ba93d24d3adc7c7e007543a.tar.gz |
redirecting stderr to /dev/null
stops an error if a user has never used clinte
-rwxr-xr-x | check_new_clinte_posts.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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) |