Add a guard to prevent erroring out on some cleans.

This commit is contained in:
fewtarius 2023-05-23 15:28:57 +00:00
parent 87464cd5e5
commit ecb61fe248
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -33,8 +33,11 @@ clean_package() {
done
for dir in "${STAMPS}/${1}" "${BUILD}/image/.stamps/${1}"
do
rm -rf ${dir}
mkdir ${dir}
if [ -d "${dir}" ]
then
rm -rf ${dir}
mkdir ${dir}
fi
done
}