Skip to content

Commit

Permalink
Exit with nonzero status if launch fails
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ilkka Laukkanen committed Dec 29, 2010
1 parent 9c1e175 commit 77d8962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/qw
Expand Up @@ -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

0 comments on commit 77d8962

Please sign in to comment.