summaryrefslogtreecommitdiffstatshomepage
path: root/update
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-07-05 14:37:21 -0500
committerToby Vincent <tobyv13@gmail.com>2021-07-05 14:37:21 -0500
commita270ee6fefd7edae6dda4a99bb0a2dd134319a87 (patch)
tree0d13cb2faa97769294c2445ffa021a9d0dd8e43c /update
parent1c763c3ea5cf98467d8426c51a2c2afbab277525 (diff)
feat: added dotfiles update script
Diffstat (limited to 'update')
-rwxr-xr-xupdate9
1 files changed, 9 insertions, 0 deletions
diff --git a/update b/update
new file mode 100755
index 0000000..58d68fd
--- /dev/null
+++ b/update
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+cd "$(cd $(dirname "$(readlink -fm "$0")") && git rev-parse --show-toplevel)"
+
+git pull
+
+if [[ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]]; then
+ ./install
+fi