From 324af72a0e46986765f47bcefdd2d944daac9482 Mon Sep 17 00:00:00 2001 From: Denis Isidoro Date: Sat, 21 Sep 2019 19:27:12 -0300 Subject: [PATCH] Add update script (#31) --- Makefile | 6 ++++++ scripts/update | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100755 scripts/update diff --git a/Makefile b/Makefile index 8000b88..4260650 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,9 @@ uninstall: release: scripts/release + +update: + scripts/update + +lint: + scripts/lint diff --git a/scripts/update b/scripts/update new file mode 100755 index 0000000..7ae0e59 --- /dev/null +++ b/scripts/update @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -euo pipefail + +export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" + +cd "$SCRIPT_DIR" + +git pull +"${SCRIPT_DIR}/scripts/install" || true