Browse Source

Added to .gitignore, use full path to rebar3 script

pull/2293/head
Regan Heath 5 years ago
parent
commit
77918174fb
3 changed files with 2 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -1
      rebar3.ps1
  3. +1
    -1
      src/rebar_prv_escriptize.erl

+ 1
- 0
.gitignore View File

@ -2,6 +2,7 @@ _checkouts
.rebar3
rebar3
rebar3.cmd
rebar3.ps1
_build
.depsolver_plt
*.beam

+ 0
- 1
rebar3.ps1 View File

@ -1 +0,0 @@
& escript.exe (Get-Item $PSCommandPath).Basename @args

+ 1
- 1
src/rebar_prv_escriptize.erl View File

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

Loading…
Cancel
Save