Safer checking of arguments to prevent script breaking in ZSH 5.0

This commit is contained in:
James Dinsdale 2016-10-15 13:35:36 +01:00
parent aad2f1ddf9
commit 2d6798145a

View file

@ -263,14 +263,13 @@ function _revolver() {
s:=style -style:=style
# Output usage information and exit
if [[ $help ]]; then
if [[ -n $help ]]; then
_revolver_usage
exit 0
fi
# Output version information and exit
if [[ $version ]]; then
echo '0.1.1'
if [[ -n $version ]]; then
exit 0
fi