Merge pull request #1453 from fewtarius/dev
Add a guard to prevent erroring out on some cleans.
This commit is contained in:
commit
923f01c46f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue