mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-12 12:16:01 +08:00
13 lines
335 B
Erlang
13 lines
335 B
Erlang
|
#!/usr/bin/env escript
|
||
|
|
||
|
main(_) ->
|
||
|
OtpRelease = list_to_integer(erlang:system_info(otp_release)),
|
||
|
case OtpRelease < 21 of
|
||
|
true ->
|
||
|
io:format(standard_error, "ERROR: Erlang/OTP version ~p found. required_min=21, recommended=23~n", [OtpRelease]),
|
||
|
halt(1);
|
||
|
false ->
|
||
|
ok
|
||
|
end.
|
||
|
|