Remove immutable flag before delete directory

This commit is contained in:
Renato Botelho 2016-07-19 16:13:35 -03:00
parent 2039a3c1e1
commit e4de9720b5

View File

@ -717,8 +717,10 @@ create_ova_image() {
LOGFILE=${BUILDER_LOGS}/ova.${TARGET}.log
[ -d "${OVA_TMP}" ] \
&& rm -rf ${OVA_TMP}
if [ -d "${OVA_TMP}" ]; then
chflags -R noschg ${OVA_TMP}
rm -rf ${OVA_TMP}
fi
mkdir -p $(dirname ${OVAPATH})