Skip to content

Commit

Permalink
Added to .gitignore, use full path to rebar3 script
Browse files Browse the repository at this point in the history
  • Loading branch information
reganheath committed May 23, 2020
1 parent 398aa6e commit 7791817
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _checkouts
.rebar3
rebar3
rebar3.cmd
rebar3.ps1
_build
.depsolver_plt
*.beam
Expand Down
1 change: 0 additions & 1 deletion rebar3.ps1

This file was deleted.

2 changes: 1 addition & 1 deletion src/rebar_prv_escriptize.erl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ write_windows_scripts(Target, Wrappers) ->

write_windows_script(Target, "powershell") ->
CmdPath = unicode:characters_to_list(Target) ++ ".ps1",
CmdScript="& escript.exe (Get-Item $PSCommandPath).Basename @args\r\n",
CmdScript="& escript.exe \"$PSScriptRoot\\$((Get-Item $PSCommandPath).Basename)\" @args\r\n",
ok = file:write_file(CmdPath, CmdScript);
write_windows_script(Target, _) ->
CmdPath = unicode:characters_to_list(Target) ++ ".cmd",
Expand Down

0 comments on commit 7791817

Please sign in to comment.