From 110b95d87cd2c1507115c242e37d3129731adbbf Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Wed, 4 May 2016 01:42:23 +0200 Subject: SBO::Lib: fix bug where pressing enter after invalid option supplied didn't work --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') 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; } -- cgit v1.2.3