build: do not print 'otp' prefix for otp version

This commit is contained in:
Zaiming Shi 2021-11-15 23:42:19 +01:00
parent d350281270
commit b68f01e7e7
1 changed files with 1 additions and 3 deletions

View File

@ -2,6 +2,4 @@
set -euo pipefail
vsn=$(erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().' -noshell)
echo "otp${vsn}"
erl -noshell -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().'