summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-03-22 12:26:04 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-03-22 12:26:04 +0000
commitd8e8261fb4a750e226ac4ca9c95da9325759b3a9 (patch)
tree389a35cb0c69612d371ecdd14fe1accee36d45c3
parent1b3d4c19223ddf0448386b1bc6ed5e530c5fc22e (diff)
Also remove TEMPROOT in error_rm_wrkdir.
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index 3138cd60085..470391f08db 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: sysmerge.sh,v 1.128 2014/03/22 11:16:42 ajacoutot Exp $
+# $OpenBSD: sysmerge.sh,v 1.129 2014/03/22 12:26:03 ajacoutot Exp $
#
# Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
@@ -79,6 +79,7 @@ error_rm_wrkdir() {
(($#)) && echo "**** ERROR: $@"
# do not remove the entire WRKDIR in case sysmerge stopped half
# way since it contains our backup files
+ rm -rf ${TEMPROOT}
rm -f ${WRKDIR}/*.tgz
rmdir ${WRKDIR} 2>/dev/null
exit 1