summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-04-26 12:25:39 -0700
committerBob Gilligan <gilligan@vyatta.com>2010-04-26 12:25:39 -0700
commited1cf8a595bbcf46c515d1ee14095ba47e661d36 (patch)
tree3ca72f18d72cf4c22a0b1dea80199ccbf8e4f960
parent33f1dc8636595650172ca738b0b81ea5d77725bf (diff)
downloadvyatta-op-ed1cf8a595bbcf46c515d1ee14095ba47e661d36.tar.gz
vyatta-op-ed1cf8a595bbcf46c515d1ee14095ba47e661d36.zip
Bugfix 5549: Use proper prompt string when deleting image.
-rwxr-xr-xscripts/vyatta-boot-image.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-boot-image.pl b/scripts/vyatta-boot-image.pl
index 276d704..d81a738 100755
--- a/scripts/vyatta-boot-image.pl
+++ b/scripts/vyatta-boot-image.pl
@@ -489,7 +489,7 @@ exit 0 if (defined($show) || (!defined($sel) && !defined($del))); # show-only
# for doing select
my $prompt_msg = 'Select the default boot image: ';
my $error_msg = 'Invalid selection. Default is not changed.';
-if ($del) {
+if (defined ($del)) {
# doing delete
$prompt_msg = 'Select the image to delete: ';
$error_msg = 'Invalid selection. Nothing is deleted.';