diff options
author | San Jacobs | 2024-09-15 19:57:06 +0200 |
---|---|---|
committer | San Jacobs | 2024-09-15 19:57:06 +0200 |
commit | f93340dd2c416ff60be64dfea261d8db9ef1aabb (patch) | |
tree | e72667c9ccac02dc6607d98d05d97225d1c5e801 | |
parent | 8677bb0b5213e2ad4c890029b27b8756da114132 (diff) | |
download | better-report-f93340dd2c416ff60be64dfea261d8db9ef1aabb.tar.gz better-report-f93340dd2c416ff60be64dfea261d8db9ef1aabb.tar.bz2 better-report-f93340dd2c416ff60be64dfea261d8db9ef1aabb.zip |
-rwxr-xr-x | main.odin | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -185,9 +185,7 @@ main :: proc() { output_file_name := fmt.aprintf("{}_Knekt.html", os.args[1][:len(os.args[1])-4])
os.remove(output_file_name)
- output_file_handle, _ := os.open(output_file_name, os.O_CREATE, 0o777)
- os.close(output_file_handle)
- output_file_handle, _ = os.open(output_file_name, os.O_RDWR, 0o777)
+ output_file_handle, _ := os.open(output_file_name, os.O_CREATE | os.O_RDWR, 0o777)
os.write_string(output_file_handle, total_output)
os.close(output_file_handle)
|