From 77d89621de6ba68052946058a39721fb35492545 Mon Sep 17 00:00:00 2001 From: Ilkka Laukkanen Date: Wed, 29 Dec 2010 12:57:14 +0200 Subject: [PATCH] Exit with nonzero status if launch fails Qwandry::Launcher::launch()'s exit status is the exit status of the system() call. This change makes qw exit with status 1 if system() returns false or nil. --- bin/qw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/qw b/bin/qw index dc18a94..cb80282 100755 --- a/bin/qw +++ b/bin/qw @@ -84,4 +84,8 @@ else package = packages[index] end -@qwandry.launch(package) if package \ No newline at end of file +if package + if not @qwandry.launch(package) + exit 1 + end +end