diff --git a/scripts/emqx_rel_otp_app_overwrite.escript b/scripts/emqx_rel_otp_app_overwrite.escript index da1ad7ad6..073caa560 100755 --- a/scripts/emqx_rel_otp_app_overwrite.escript +++ b/scripts/emqx_rel_otp_app_overwrite.escript @@ -1,4 +1,4 @@ -#!/usr/bin/env -S escript -c +#!/usr/bin/env escript %% This script is part of 'relup' process to overwrite the OTP app versions (incl. ERTS) in rel files from upgrade base %% so that 'rebar relup' call will not generate instructions for restarting OTP apps or restarting the emulator. %% @@ -7,6 +7,7 @@ %% %% note, we use NEW to overwrite OLD is because the modified NEW rel file will be overwritten by next 'rebar relup' %% +-mode(compile). main([Dir, RelVsn, BASE_VERSIONS]) -> {ErtsVsn, Overwrites} = get_otp_apps(rel_file(Dir, RelVsn), RelVsn), diff --git a/scripts/fail-on-old-otp-version.escript b/scripts/fail-on-old-otp-version.escript index 8399028cb..3081c0d29 100755 --- a/scripts/fail-on-old-otp-version.escript +++ b/scripts/fail-on-old-otp-version.escript @@ -1,4 +1,6 @@ -#!/usr/bin/env -S escript -c +#!/usr/bin/env escript + +-mode(compile). main(_) -> OtpRelease = list_to_integer(erlang:system_info(otp_release)), @@ -9,4 +11,3 @@ main(_) -> false -> ok end. - diff --git a/scripts/update_appup.escript b/scripts/update_appup.escript index 0ac5084ab..141fd5833 100755 --- a/scripts/update_appup.escript +++ b/scripts/update_appup.escript @@ -1,6 +1,8 @@ -#!/usr/bin/env -S escript -c +#!/usr/bin/env escript %% -*- erlang-indent-level:4 -*- +-mode(compile). + usage() -> "A script that fills in boilerplate for appup files.