summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rubio <manuel@bosqueviejo.net>2013-09-21 22:28:49 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2013-10-16 13:21:56 +0200
commitdfba6dd6f9ac1d0360dcfdf8194bb1c8ff25c7a8 (patch)
tree5a3a9a6c1065f1fe0cc211fa52808611eb6b66bb
parentd49ac036278883f16c170042b80a745e0119bf39 (diff)
Fix issues introduced in #137 (4dfdd72)
* fix Dialyzer warning * fix formatting
-rw-r--r--src/rebar_upgrade.erl27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl
index 1441c5a..5814e51 100644
--- a/src/rebar_upgrade.erl
+++ b/src/rebar_upgrade.erl
@@ -185,21 +185,22 @@ boot_files(TargetDir, Ver, Name) ->
filename:join([".", ?TMP, "releases", Ver, "start_clean.boot"])),
SysConfig = filename:join([TargetDir, "releases", Ver, "sys.config"]),
- case filelib:is_regular(SysConfig) of
- true ->
- {ok, _} = file:copy(
- SysConfig,
- filename:join([".", ?TMP, "releases", Ver, "sys.config"]));
- false -> ok
- end,
+ _ = case filelib:is_regular(SysConfig) of
+ true ->
+ {ok, _} = file:copy(
+ SysConfig,
+ filename:join([".", ?TMP, "releases", Ver,
+ "sys.config"]));
+ false -> ok
+ end,
VmArgs = filename:join([TargetDir, "releases", Ver, "vm.args"]),
- case filelib:is_regular(VmArgs) of
- true ->
- {ok, _} = file:copy(
- VmArgs,
- filename:join([".", ?TMP, "releases", Ver, "vm.args"]));
- false -> {ok, 0}
+ case filelib:is_regular(VmArgs) of
+ true ->
+ {ok, _} = file:copy(
+ VmArgs,
+ filename:join([".", ?TMP, "releases", Ver, "vm.args"]));
+ false -> {ok, 0}
end.
make_tar(NameVer, NewVer, NewName) ->