From 7c2abfd235b94bbab142955ee0bec5876de61465 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Wed, 30 May 2012 14:08:08 -0500 Subject: bug fix: == -> eq in string comparison --- sboupgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sboupgrade b/sboupgrade index a0259ad..0883ad0 100755 --- a/sboupgrade +++ b/sboupgrade @@ -54,7 +54,7 @@ my $only_new = exists $options{o} ? 'TRUE' : 'FALSE'; my $compat32 = exists $options{p} ? 'TRUE' : 'FALSE'; if (exists $options{j}) { - unless ($options{j} =~ /^\d+$/ || $options{j} == 'FALSE') { + unless ($options{j} =~ /^\d+$/ || $options{j} eq 'FALSE') { die "You have provided an invalid parameter for -j\n"; } } -- cgit v1.2.3