summary refs log tree commit diff stats
path: root/check_new_clinte_posts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'check_new_clinte_posts.sh')
-rwxr-xr-xcheck_new_clinte_posts.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/check_new_clinte_posts.sh b/check_new_clinte_posts.sh
new file mode 100755
index 0000000..1d2dfbe
--- /dev/null
+++ b/check_new_clinte_posts.sh
@@ -0,0 +1,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
\ No newline at end of file
title='author James Booth <boothj5@gmail.com> 2015-02-26 23:23:15 +0000 committer James Booth <boothj5@gmail.com> 2015-02-26 23:23:15 +0000 Updated themes for release' href='/danisanti/profani-tty/commit/themes/headache?id=30b5f112fd81890411d6fe52c1f442f4433e0d01'>30b5f112 ^
45a26b11 ^





30b5f112 ^
45a26b11 ^


45a26b11 ^
30b5f112 ^
45a26b11 ^

30b5f112 ^
fbc30231 ^

















cd2458c0 ^

b21edfaa ^
cd2458c0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70