dgiot/scripts/get-otp-vsn.sh

6 lines
216 B
Bash
Raw Normal View History

2022-12-29 18:13:09 +08:00
#!/usr/bin/env bash
set -euo pipefail
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().'