Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 9ba11d69 authored by Robert Nelson's avatar Robert Nelson
Browse files

old bug: remove old dir, if rerunning same day


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 68e1bbdc
No related merge requests found
......@@ -811,6 +811,9 @@ chroot_mount
sudo chroot ${tempdir} /bin/sh chroot_script.sh
echo "Log: Complete: [sudo chroot ${tempdir} /bin/sh chroot_script.sh]"
if [ -d ${DIR}/deploy/${export_filename}/ ] ; then
rm -rf ${DIR}/deploy/${export_filename}/ || true
fi
mkdir -p ${DIR}/deploy/${export_filename}/ || true
if [ -n "${chroot_hook}" -a -r "${DIR}/${chroot_hook}" ] ; then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment