From 54bb876b85d4d7dd2594fef7a6b3426de5b79cf6 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 14 Jul 2021 15:57:31 +0200 Subject: [PATCH] btrbk: tidy check_file --- btrbk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btrbk b/btrbk index da1c111..ee449e6 100755 --- a/btrbk +++ b/btrbk @@ -3861,9 +3861,7 @@ sub check_file($$;@) my %opts = @_; my $sanitize = $opts{sanitize}; my $error_statement = $opts{error_statement}; # if not defined, no error messages are printed - - my $match = $file_match; - $match = $glob_match if($accept->{wildcards}); + my $match = $accept->{wildcards} ? $glob_match : $file_match; if($file =~ /^($match)$/) { $file = $1;