From d5875bb024363599fae8f0c6bdc94c54cc9fe66f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 28 Nov 2010 19:02:43 +0100 Subject: restore.pl: fix empty exists check when pressing enter Signed-off-by: Florian Pritz --- restore.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'restore.pl') diff --git a/restore.pl b/restore.pl index 3d00026..1ca5f68 100755 --- a/restore.pl +++ b/restore.pl @@ -73,7 +73,7 @@ for my $filename (@ARGV) { my $id = ; chomp $id; chdir "/"; - next unless (exists ($filelist[$id])); + next unless ($id =~ /^\d+$/ && exists ($filelist[$id])); remove_tree $file if -d $file; # need mtime preservation #rcopy $filelist[$id]->{path}, $file; -- cgit v1.2.3-24-g4f1b