hack: rename scripts to hack

This commit is contained in:
Alex Zenla
2024-03-07 16:40:06 +00:00
parent 182401371b
commit e3a70e5595
27 changed files with 79 additions and 70 deletions

13
hack/kernel/clean.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
REAL_SCRIPT="$(realpath "${0}")"
cd "$(dirname "${REAL_SCRIPT}")/../.."
KRATA_DIR="${PWD}"
KERNEL_DIR="${KRATA_DIR}/kernel"
# shellcheck disable=SC2010
for ITEM in $(ls "${KERNEL_DIR}" | grep "^linux-")
do
rm -rf "${KERNEL_DIR:?}/${ITEM}"
done