Browse Source

change the status code to 1 for cases when the version was not found (#56)

remotes/origin/add-simple-redirecting-site
Ran Yitzhaki 6 years ago committed by Gal Schlezinger
parent
commit
45d016aa6a
  1. 8
      executable/Install.re

8
executable/Install.re

@ -94,8 +94,8 @@ let run = (~version) => @@ -94,8 +94,8 @@ let run = (~version) =>
" Architecture: "
<Pastel color=Pastel.Cyan> {System.NodeArch.toString(arch)} </Pastel>
</Pastel>,
)
|> Lwt.return
);
exit(1);
| Versions.Already_installed(version) =>
Console.log(
<Pastel>
@ -112,6 +112,6 @@ let run = (~version) => @@ -112,6 +112,6 @@ let run = (~version) =>
<Pastel color=Pastel.Cyan> version </Pastel>
" not found!"
</Pastel>,
)
|> Lwt.return
);
exit(1);
};

Loading…
Cancel
Save