From 2374d6e7fec0e2e382b3f43ddc13401f50198579 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 30 May 2024 10:59:47 -0400 Subject: [PATCH] Only remove Godot temp file if it exists, cut down on errors --- functions/configurator_functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/configurator_functions.sh b/functions/configurator_functions.sh index 4b7d66a1..aa0618f4 100644 --- a/functions/configurator_functions.sh +++ b/functions/configurator_functions.sh @@ -5,7 +5,9 @@ check_bios_files() { # There is a "basic" and "expert" mode which outputs different levels of data # USAGE: check_bios_files "mode" - rm -f "$godot_bios_files_checked" # Godot data transfer temp files + if [[ -f "$godot_bios_files_checked" ]]; then + rm -f "$godot_bios_files_checked" # Godot data transfer temp files + fi touch "$godot_bios_files_checked" while IFS="^" read -r bios_file bios_subdir bios_hash bios_system bios_desc