[CI] Remove cacerts scratch directory if it already exists
This shouldn't be a problem in CI, which uses isolated build workers,
but it can be troublesome if you're trying to run this locally for
troubleshooting purposes.
@@ -363,6 +363,7 @@ macos_use_cert_file_from_linux_cacerts_package() {
# we can just grab a cert file from the Linux core/cacerts Habitat
# package.
cacerts_scratch_dir="cacerts_scratch"
+ rm -Rf "${cacerts_scratch_dir}"
mkdir "${cacerts_scratch_dir}"
hab pkg download core/cacerts \
--target=x86_64-linux \
