From f7b31627c5a048f9eae231522732dc43a00ca4c8 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 31 Mar 2022 21:10:55 +0200 Subject: [PATCH] "rm -f" to clean temp files --- minifirewall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minifirewall b/minifirewall index f8729f7..1f7ed86 100755 --- a/minifirewall +++ b/minifirewall @@ -149,7 +149,7 @@ source_file_or_error() { cat "${tmpfile}" exit 1 fi - rm "${tmpfile}" + rm -f "${tmpfile}" } source_configuration() { if ! test -f ${config_file}; then @@ -194,7 +194,7 @@ source_configuration() { grep -E "^\s*[_a-zA-Z0-9]+=" "${config_file}" > "${tmp_config_file}" source_file_or_error "${tmp_config_file}" - rm "${tmp_config_file}" + rm -f "${tmp_config_file}" else source_file_or_error "${config_file}" fi