diff options
author | Joey Hess <joey@kitenet.net> | 2011-07-16 16:09:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-07-16 16:09:31 -0400 |
commit | b07bfa7beac7c86e57e83fd6a09b37b3cf8a367a (patch) | |
tree | 03d8b5a64d5ff27fc9e5153b5c99138b346df947 /dh | |
parent | edbe1cf7d625f9cc3db5c266db4845592e588569 (diff) |
avoid undef when dh is run w/o a sequence
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -335,7 +335,7 @@ my $sequence; if (! compat(7)) { # From v8, the sequence is the very first parameter. $sequence=shift @ARGV_orig; - if ($sequence=~/^-/) { + if (defined $sequence && $sequence=~/^-/) { error "Unknown sequence $sequence (options should not come before the sequence)"; } } |