Skip to content

Commit 4443388

Browse files
committed
Modify output file name format
1 parent 41d4dfe commit 4443388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fosslight_binary/binary_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def init(path_to_find_bin, output_file_name, format):
4949

5050
_json_ext = ".json"
5151
_yaml_ext = ".yaml"
52-
_start_time = datetime.now().strftime('%Y%m%d_%H%M%S')
52+
_start_time = datetime.now().strftime('%y%m%d_%H%M')
5353
_result_log = {
5454
"Tool Info": _PKG_NAME
5555
}
@@ -74,7 +74,7 @@ def init(path_to_find_bin, output_file_name, format):
7474
elif output_extension == _yaml_ext:
7575
result_report = f"fosslight-sbom-info_{_start_time}"
7676
else:
77-
result_report = f"FOSSLight-Report_{_start_time}"
77+
result_report = f"fosslight_bin_{_start_time}"
7878
bin_txt_file = f"binary_{_start_time}.txt"
7979

8080
result_report = os.path.join(output_path, result_report)

0 commit comments

Comments
 (0)