mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
hack: rename scripts to hack
This commit is contained in:
13
hack/kernel/clean.sh
Executable file
13
hack/kernel/clean.sh
Executable 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
|
Reference in New Issue
Block a user