From 06570f4e2289286310f5fe891cffd1134dd9cc50 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Mon, 2 Jan 2012 02:15:03 -0600 Subject: [PATCH] script/gentree: some confpacks (var) can contain schg files; if rm fails, remove schg and try again --- script/gentree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gentree b/script/gentree index 319f54c..a135e56 100755 --- a/script/gentree +++ b/script/gentree @@ -317,7 +317,7 @@ do_imgall() { chk mv "${sroot}/${pack}" "${tree}/pack" chk mkdir -p "${sroot}/${pack}" ( cd "${tree}/pack" && find "${pack}" | cpio -o ) | gzip -9 > "${sconf}/base/${pack}.cpio.gz" || chk - chk rm -Rf "${tree}/pack/${pack}" + rm -Rf "${tree}/pack/${pack}" || chflags -R noschg "${tree}/pack/${pack}" && rm -Rf "${tree}/pack/${pack}" || chk done chk rm -Rf "${tree}/pack" } -- 2.45.0