summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Isidoro <denis_isidoro@live.com>2019-09-20 18:48:25 -0300
committerDenis Isidoro <denis_isidoro@live.com>2019-09-20 18:48:54 -0300
commit9351301e7e0f34b15cc9933a2f13082b6fb817f6 (patch)
treecfe7a44dbfa928a7c1e1e0f1c5aef4fb49a4780c
parent2bc52976c2c4365661b7100b83bcdbbe7c2284c7 (diff)
Improve release scriptv0.6.0
-rwxr-xr-xscripts/release6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/release b/scripts/release
index f854c55..cb74f4c 100755
--- a/scripts/release
+++ b/scripts/release
@@ -4,7 +4,11 @@ set -euo pipefail
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$SCRIPT_DIR"
-tag="v$*"
+echo "git pull"
+git pull
+
+version="$(grep VERSION "${SCRIPT_DIR}/navi" | grep -Eo '[0-9\.]+')"
+tag="v${version}"
tar="https://github.com/denisidoro/navi/archive/v${tag}.tar.gz"
formula="/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/navi.rb"