Skip to content

Commit

Permalink
fix the binary text copy issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyeong Seok <jiyeong.seok@lge.com>
  • Loading branch information
dd-jy committed Sep 16, 2022
1 parent 36c2f0d commit cdde9c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fosslight_scanner/fosslight_scanner.py
Expand Up @@ -168,7 +168,9 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
os.path.join(_output_dir, output_files["BIN"]),
"", db_url)
if success:
success_file, copied_file = copy_file(os.path.join(_output_dir, output_files["BIN_TXT"]), output_path)
output_binary_txt_raw = f"{output_files['BIN'].split('.')[0]}.txt"
success_file, copied_file = copy_file(os.path.join(_output_dir, output_binary_txt_raw),
os.path.join(output_path, output_files["BIN_TXT"]))
if success_file:
temp_output_fiiles.append(copied_file)

Expand Down

0 comments on commit cdde9c5

Please sign in to comment.