Skip to content

Commit

Permalink
Merge pull request #20014 from vtrubovics/POO_165042_2
Browse files Browse the repository at this point in the history
Fix of parameter with white space
  • Loading branch information
tjyrinki authored Aug 20, 2024
2 parents 672f226 + 5ff2b09 commit 7963747
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 7963747

Please sign in to comment.