sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 110b95d87cd2c1507115c242e37d3129731adbbf
parent 4f7dea8f66ca469e018b7f5241df0d46dc4544e2
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Wed,  4 May 2016 01:42:23 +0200

SBO::Lib: fix bug where pressing enter after invalid option supplied didn't work

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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; }