logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

clean_artifacts.sh (348B)


  1. # SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. # Delete build artifacts to free up space for Linux kernel build
  5. for pkg in $(ls "${SRCDIR}"); do
  6. if [ -d "${SRCDIR}/${pkg}/build" ]; then
  7. rm -rf "${SRCDIR}/${pkg}/build"
  8. fi
  9. done
  10. rm -rf "/${ARCH_DIR}/artifact"