Merge pull request #8652 from thalesmg/fix-env-flag

fix: rm non-portable `env` option
This commit is contained in:
Zaiming (Stone) Shi 2022-08-04 06:35:57 +01:00 committed by GitHub
commit 5a9e8a23b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -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),

View File

@ -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.

View File

@ -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.