Skip to content

Commit cdde9c5

Browse files
committed
fix the binary text copy issue
Signed-off-by: Jiyeong Seok <[email protected]>
1 parent 36c2f0d commit cdde9c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fosslight_scanner/fosslight_scanner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
168168
os.path.join(_output_dir, output_files["BIN"]),
169169
"", db_url)
170170
if success:
171-
success_file, copied_file = copy_file(os.path.join(_output_dir, output_files["BIN_TXT"]), output_path)
171+
output_binary_txt_raw = f"{output_files['BIN'].split('.')[0]}.txt"
172+
success_file, copied_file = copy_file(os.path.join(_output_dir, output_binary_txt_raw),
173+
os.path.join(output_path, output_files["BIN_TXT"]))
172174
if success_file:
173175
temp_output_fiiles.append(copied_file)
174176

0 commit comments

Comments
 (0)