diff --git a/usr.sbin/mergemaster/mergemaster.sh b/usr.sbin/mergemaster/mergemaster.sh index 6fdcd029b2aa..7fcd93c23ffa 100755 --- a/usr.sbin/mergemaster/mergemaster.sh +++ b/usr.sbin/mergemaster/mergemaster.sh @@ -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