summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"