diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-05 14:37:21 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-05 14:37:21 -0500 |
commit | a270ee6fefd7edae6dda4a99bb0a2dd134319a87 (patch) | |
tree | 0d13cb2faa97769294c2445ffa021a9d0dd8e43c /update | |
parent | 1c763c3ea5cf98467d8426c51a2c2afbab277525 (diff) |
feat: added dotfiles update script
Diffstat (limited to 'update')
-rwxr-xr-x | update | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |