diff --git a/lib/Rex/Repositorio/Repository/Apt.pm b/lib/Rex/Repositorio/Repository/Apt.pm index a8204d4..d0161b1 100644 --- a/lib/Rex/Repositorio/Repository/Apt.pm +++ b/lib/Rex/Repositorio/Repository/Apt.pm @@ -554,7 +554,7 @@ sub _run_ftp_archive { # export pub key as asc file my $pub_file = $self->repo->{name} . ".asc"; - $cmd = "cd $repo_dir ; gpg -a --output $pub_file --export $key"; + $cmd = "cd $repo_dir ; gpg -a --export $key > $pub_file"; system $cmd; if ( $? != 0 ) {