Suppress spurious warning messages about rm -rf TEMPROOT failing

before chflags, and exit non-zero if the old TEMPROOT dir
can't be deleted for whatever reason.
This commit is contained in:
Doug Barton 2002-08-05 08:47:52 +00:00
parent 008a2c53ce
commit 0aed4a4c3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101362

View File

@ -398,9 +398,9 @@ fi
CVS_ID_TAG=FreeBSD
delete_temproot () {
rm -rf "${TEMPROOT}"
chflags -R 0 "${TEMPROOT}"
rm -rf "${TEMPROOT}"
rm -rf "${TEMPROOT}" 2>/dev/null
chflags -R 0 "${TEMPROOT}" 2>/dev/null
rm -rf "${TEMPROOT}" || exit 1
}
case "${RERUN}" in