From 00c70b9da0b73ec15f9a4bf57f2014f31ecd3127 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 13 Jan 2023 10:36:20 -0500 Subject: [PATCH] Simplify resetAll() --- openwrtbuilder | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 48fa106..0411639 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -495,9 +495,7 @@ resetAll() { debug "${FUNCNAME[0]}" askOk "Remove ${BUILDROOT}/sources and ${BUILDROOT}/bin?" || exit $? debug "rm -rf ${BUILDROOT}/sources ${BUILDROOT}/bin" - find "${BUILDROOT}/sources" "${BUILDROOT}/bin" \ - ! -path "$FILESDIR" -type d -delete + - #rm -rf "${BUILDROOT}/sources" "${BUILDROOT}/bin" + rm -rf "${BUILDROOT:?}/sources" "${BUILDROOT:?}/bin" }