From 76a487f297cf486ddd87f68bf60afaee127ce6d4 Mon Sep 17 00:00:00 2001 From: Gian Lorenzo Meocci Date: Tue, 18 Jul 2023 15:46:01 +0200 Subject: [PATCH 1/2] Support OTP26 --- bin/increment-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/increment-version b/bin/increment-version index c633c9c..c605392 100755 --- a/bin/increment-version +++ b/bin/increment-version @@ -32,7 +32,7 @@ if [ $UNSTAGED_COUNT -ne "0" ]; then exit 1 fi -version="$(erl -noshell -s init stop -eval "{ok, [{_,_,Props}]} = file:consult(\"src/prometheus.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, Props)])")" +version="$(erl -noshell -s init halt -eval "{ok, [{_,_,Props}]} = file:consult(\"src/prometheus.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, Props)])")" echo "Old version: ${version}" From 317e7ab6355e163283c37cb1bfb41f85e9fb55af Mon Sep 17 00:00:00 2001 From: Gian Lorenzo Meocci Date: Tue, 18 Jul 2023 15:56:00 +0200 Subject: [PATCH 2/2] Update increment-version --- bin/increment-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/increment-version b/bin/increment-version index c605392..8bdbf05 100755 --- a/bin/increment-version +++ b/bin/increment-version @@ -32,7 +32,7 @@ if [ $UNSTAGED_COUNT -ne "0" ]; then exit 1 fi -version="$(erl -noshell -s init halt -eval "{ok, [{_,_,Props}]} = file:consult(\"src/prometheus.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, Props)])")" +version="$(erl -noshell -s erlang halt -eval "{ok, [{_,_,Props}]} = file:consult(\"src/prometheus.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, Props)])")" echo "Old version: ${version}"