Skip to content

Commit

Permalink
Fix of parameter with white space
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrubovics committed Aug 20, 2024
1 parent cb1507f commit ec13f62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/oscap_tests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,12 @@ sub uload_log_file {
my $file_name = $_[0];
if (script_run "! [[ -e $file_name ]]") {
$file_name =~ s/\s//g; # remove whitespaces
script_run "p7zip -k $file_name";
upload_logs($file_name . ".7z", timeout => 600);
script_run "rm $file_name.7z";
if (script_run "! [[ -e $file_name.7z ]]") {
upload_logs($file_name . ".7z", timeout => 600);
script_run "rm $file_name.7z";
}
}
}
Expand Down

0 comments on commit ec13f62

Please sign in to comment.