mirror of
https://github.com/molovo/revolver.git
synced 2026-09-10 06:36:14 -04:00
Safer checking of arguments to prevent script breaking in ZSH 5.0
This commit is contained in:
parent
aad2f1ddf9
commit
2d6798145a
5
revolver
5
revolver
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue