diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 01:42:23 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 01:42:23 +0200 |
commit | 110b95d87cd2c1507115c242e37d3129731adbbf (patch) | |
tree | 7827c6a5cd40c9f9b434544f50364e7b633e9960 /SBO-Lib/lib/SBO/Lib.pm | |
parent | 4f7dea8f66ca469e018b7f5241df0d46dc4544e2 (diff) | |
download | sbotools2-110b95d87cd2c1507115c242e37d3129731adbbf.tar.xz |
SBO::Lib: fix bug where pressing enter after invalid option supplied didn't work
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index b65367e..8873bb5 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -1327,6 +1327,7 @@ sub ask_opts { while ($opts !~ $kv_regex) { warn "Invalid input received.\n"; $opts = $ask->(); + return() unless $opts; } return $opts; } |