diff options
-rw-r--r-- | src/rebar_upgrade.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index 3c63a6c..cfe321e 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -179,10 +179,13 @@ make_tar(NameVer, NewVer, NewName) -> ok = file:delete(Absname), case os:type() of {win32,_} -> - {ok, _} = file:copy( - filename:join([".", "releases", NewVer, "start.boot"]), - filename:join([".", "releases", NewVer, NewName ++ ".boot"])); - _ -> ok + {ok, _} = + file:copy( + filename:join([".", "releases", NewVer, "start.boot"]), + filename:join([".", "releases", NewVer, NewName ++ ".boot"])), + ok; + _ -> + ok end, {ok, Tar} = erl_tar:open(Absname, [write, compressed]), ok = erl_tar:add(Tar, "lib", []), |