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.
This commit is contained in:
Ilkka Laukkanen 2010-12-29 12:57:14 +02:00
parent 9c1e1753de
commit 77d89621de
1 changed files with 5 additions and 1 deletions

6
bin/qw
View File

@ -84,4 +84,8 @@ else
package = packages[index]
end
@qwandry.launch(package) if package
if package
if not @qwandry.launch(package)
exit 1
end
end