summaryrefslogtreecommitdiff
path: root/scripts/vyatta-boot-image.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-boot-image.pl')
-rwxr-xr-xscripts/vyatta-boot-image.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-boot-image.pl b/scripts/vyatta-boot-image.pl
index 127177d..276d704 100755
--- a/scripts/vyatta-boot-image.pl
+++ b/scripts/vyatta-boot-image.pl
@@ -219,6 +219,10 @@ sub doSelect {
last;
}
}
+ if (!defined($new_idx)) {
+ print "Version $new_ver not found.\n";
+ exit 1;
+ }
} else {
$new_idx = $ {$bentries}[$resp]->{'idx'};
$new_ver = $ {$bentries}[$resp]->{'ver'};