Add update script (#31)

This commit is contained in:
Denis Isidoro 2019-09-21 19:27:12 -03:00 committed by GitHub
parent 0df4b9123d
commit 324af72a0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -6,3 +6,9 @@ uninstall:
release: release:
scripts/release scripts/release
update:
scripts/update
lint:
scripts/lint

9
scripts/update Executable file
View file

@ -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