Merge pull request #1453 from fewtarius/dev

Add a guard to prevent erroring out on some cleans.
This commit is contained in:
fewtarius 2023-05-23 11:29:34 -04:00 committed by GitHub
commit 923f01c46f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}