Fix nightly's sandbox cleanup not to hang when stdin is a tty
"rm -r" prompts for read-only files when stdin is a tty. Probably broken since we install builtin configuration read-only, in commitb4161cd7
, v4.3.0. Move "done" message to the right place. Broken in commit70c03561
, v4.3.12.
This commit is contained in:
parent
c7d9d4fcf4
commit
a94ae5f8c1
1 changed files with 1 additions and 2 deletions
|
@ -478,12 +478,11 @@ in
|
||||||
rm -rf `find "${WORKDIR}" -maxdepth 1 ! -name .git` || warn "Directory ${WORKDIR} could not be forcibly removed !"
|
rm -rf `find "${WORKDIR}" -maxdepth 1 ! -name .git` || warn "Directory ${WORKDIR} could not be forcibly removed !"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
rm -r "${WORKDIR}" || warn "Directory ${WORKDIR} could not be cleanly removed !"
|
|
||||||
rm -rf "${WORKDIR}" || warn "Directory ${WORKDIR} could not be forcibly removed !"
|
rm -rf "${WORKDIR}" || warn "Directory ${WORKDIR} could not be forcibly removed !"
|
||||||
[ -d "${WORKDIR}/." ] && warn "Directory ${WORKDIR} still present"
|
[ -d "${WORKDIR}/." ] && warn "Directory ${WORKDIR} still present"
|
||||||
echo "Done (cleaning)."
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
echo "Done (cleaning)."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue