diff options
author | Jose Luis Martinez <jlmartinez@capside.com> | 2015-03-31 23:50:30 +0200 |
---|---|---|
committer | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2016-05-12 06:02:25 -0700 |
commit | ccf3f27a783e7e6ddde426780487da89346ff9cd (patch) | |
tree | 37deea4b839378f11f72bf01e8230be3e0e23a05 | |
parent | 192b2191cbfbc2416253568fa233cbd7f10bc85c (diff) | |
download | carton-ccf3f27a783e7e6ddde426780487da89346ff9cd.tar.gz |
Try to fix mixed console output on Windows
When executing carton exec COMMAND on Windows, the command returns, to
the command prompt, while it's running if exec is used. system behaves
correctly
-rw-r--r-- | lib/Carton/CLI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Carton/CLI.pm b/lib/Carton/CLI.pm index ffb86b1..360328e 100644 --- a/lib/Carton/CLI.pm +++ b/lib/Carton/CLI.pm @@ -18,7 +18,7 @@ use Carton::Error; use constant { SUCCESS => 0, INFO => 1, WARN => 2, ERROR => 3 }; -our $UseSystem = 0; # 1 for unit testing +our $UseSystem = ($^O eq 'MSWin32'); # 1 for unit testing, and for Windows use Class::Tiny { verbose => undef, |