Skip to content

Commit

Permalink
firmware: guard rm with -f to avoid spurious errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 21, 2024
1 parent e78e243 commit 50a6cc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opnsense/scripts/firmware/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ env_init()
# clean up old CRL files if found
for FILE in $(find /tmp/ -name "libfetch_crl.*"); do
if [ "${FILE}" != "${CRL_FILE}" ]; then
rm ${FILE}
rm -f ${FILE}
fi
done

Expand All @@ -85,7 +85,7 @@ env_init()
# in case of problems clear the file and leave an
# empty one for the next run also in order to let
# libfetch complain about the missing CRLs
rm ${CRL_TMP}
rm -f ${CRL_TMP}
: > ${CRL_FILE}
fi
fi
Expand All @@ -94,7 +94,7 @@ env_init()
export SSL_CRL_FILE="${CRL_FILE}"
else
# unused so ok to remove
rm ${CRL_FILE}
rm -f ${CRL_FILE}
fi
}

Expand Down

0 comments on commit 50a6cc8

Please sign in to comment.