We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773e094 commit ce1eccaCopy full SHA for ce1ecca
bin/notify
@@ -2,3 +2,7 @@
2
cd "$(dirname "${BASH_SOURCE[0]}")"
3
source .config
4
cd $proj_dir
5
+
6
+#gather input
7
+[ $# -ge 1 -a -f "$1" ] && input="$1" || input=$(cat)
8
+printf "Subject: UPDATE: there are new files\n\n$input" | sendmail ${email_user}@${email_host}
config/example.conf
@@ -6,3 +6,7 @@ ignore_hidden=true
remote_host=''
remote_user=''
remote_pass=''
9
10
+###email info (who is receiving)###
11
+email_user='you'
12
+email_host='example.com'
0 commit comments