aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-04 01:42:23 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-04 01:42:23 +0200
commit110b95d87cd2c1507115c242e37d3129731adbbf (patch)
tree7827c6a5cd40c9f9b434544f50364e7b633e9960 /SBO-Lib/lib/SBO/Lib.pm
parent4f7dea8f66ca469e018b7f5241df0d46dc4544e2 (diff)
downloadsbotools2-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.pm1
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;
}