Merge pull request #8652 from thalesmg/fix-env-flag
fix: rm non-portable `env` option
This commit is contained in:
commit
5a9e8a23b3
|
@ -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),
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue