Clean up the cache directory, if no files are present.
The folder 'cache/contents.chroot' in the build directory can be removed if no firmware is installed.
This commit is contained in:
parent
cb912308c7
commit
fd1505414b
|
@ -57,5 +57,10 @@ Firmware_List_From_Contents () {
|
|||
rm -f "${CONTENTS_FILE}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Clean up the cache directory, if no files are present
|
||||
rmdir --ignore-fail-on-non-empty "cache/contents.chroot/${DISTRO_CHROOT}/${_ARCHIVE_AREA}"
|
||||
rmdir --ignore-fail-on-non-empty "cache/contents.chroot/${DISTRO_CHROOT}"
|
||||
rmdir --ignore-fail-on-non-empty "cache/contents.chroot"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue