summaryrefslogtreecommitdiff
path: root/bin/wup
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wup')
-rwxr-xr-xbin/wup6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/wup b/bin/wup
index eec3e85..e10eef4 100755
--- a/bin/wup
+++ b/bin/wup
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/sh -e
# Wiki update
-cd ~/Wiki || exit 1
-[ "$(git status --porcelain)" ] && { git add .; git commit -m update; }
+cd ~/Wiki
+[ "$(git status --porcelain)" ] && git add . && git commit -m update
git pull
git push