aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rwxr-xr-xcli/icevault6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/icevault b/cli/icevault
index 992ee6a..cc95729 100755
--- a/cli/icevault
+++ b/cli/icevault
@@ -470,10 +470,10 @@ sub guessPasswordPage(@) {
}
}
else {
- if ($pw1->{value} eq $pw2->{value}) {
+ if ($pw1->{value} eq $pw2->{value}) {
($idx0, $idx1, $idx2) = (0, 1, 2);
}
- elsif ($pw0->{value} eq $pw1->{value}) {
+ elsif ($pw0->{value} eq $pw1->{value}) {
($idx0, $idx1, $idx2) = (2, 0, 1);
}
elsif ($pw0->{value} eq $pw2->{value}) {
@@ -541,7 +541,7 @@ sub promptYN($;$) {
# Get the SHA-256 digest of the given file.
sub sha256_file($) {
my $filename = shift;
-
+
require 'Digest.pm';
my $sha256 = Digest->new('SHA-256');
open my $fh, '<', $filename or error "Can't open C<%s>: %s", $filename, $!;