summaryrefslogtreecommitdiff
path: root/bin/wup
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-05-11 11:45:47 +0200
committerMarc Vertes <mvertes@free.fr>2020-05-11 11:45:47 +0200
commit5bd55a186b8860c3d9e2e9e0af534e81f03159ae (patch)
tree9647e8e39fc650f4e6e86a03a80106a991d04d40 /bin/wup
parentc2a5ccee03cbe70965189910da97da5ca006517b (diff)
update
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