~gbmor/clinte

ref: v2.1.0 clinte/check_new_clinte_posts.sh -rwxr-xr-x 276 bytes
1e51bf9aBen Morrison removed outdated wording about make behavior 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

LOCAL_FILE="$HOME/.clinte.json"
LOCAL_HASH=$(sha256sum "$LOCAL_FILE" | cut -d' ' -f1)

DBFILE="/usr/local/clinte/clinte.json"
DBFILE_HASH=$(sha256sum "$DBFILE" | cut -d' ' -f1)

if [ "$LOCAL_HASH" != "$DBFILE_HASH" ]
then
    printf "%s\n" "New posts on clinte!"
fi