summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Klötzke <jan.kloetzke@freenet.de>2011-10-01 13:23:35 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-10-20 16:27:35 +0200
commit0ce5cbab0648a6bac526a330bee19f7782f76c7d (patch)
tree9b8c6fb76c0da1055ac0ec3becc29a2db07a4c81 /src
parent3f9b346dec1ba98290350c2d3477d8de89a73fb8 (diff)
rebar_file_utils: simplify commands on Windows
Diffstat (limited to 'src')
-rw-r--r--src/rebar_file_utils.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl
index 708ab42..e3e7858 100644
--- a/src/rebar_file_utils.erl
+++ b/src/rebar_file_utils.erl
@@ -82,7 +82,7 @@ mv(Source, Dest) ->
ok;
{win32, _} ->
{ok, R} = rebar_utils:sh(
- ?FMT("cmd " "/c move /y \"~s\" \"~s\" 1> nul",
+ ?FMT("move /y \"~s\" \"~s\" 1> nul",
[filename:nativename(Source),
filename:nativename(Dest)]),
[{use_stdout, false}, return_on_error]),
@@ -115,14 +115,14 @@ delete_each([File | Rest]) ->
delete_each_dir_win32([]) -> ok;
delete_each_dir_win32([Dir | Rest]) ->
- {ok, []} = rebar_utils:sh(?FMT("cmd /c rd /q /s \"~s\"",
+ {ok, []} = rebar_utils:sh(?FMT("rd /q /s \"~s\"",
[filename:nativename(Dir)]),
[{use_stdout, false}, return_on_error]),
delete_each_dir_win32(Rest).
xcopy_win32(Source,Dest)->
{ok, R} = rebar_utils:sh(
- ?FMT("cmd /c xcopy \"~s\" \"~s\" /q /y /e 2> nul",
+ ?FMT("xcopy \"~s\" \"~s\" /q /y /e 2> nul",
[filename:nativename(Source), filename:nativename(Dest)]),
[{use_stdout, false}, return_on_error]),
case length(R) > 0 of