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

Loading…
Cancel
Save