Explorar o código

Simplify resetAll()

bryan %!s(int64=2) %!d(string=hai) anos
pai
achega
00c70b9da0
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      openwrtbuilder

+ 1 - 3
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"
 }