This repository has been archived on 2024-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
server-kernel/cleantool.sh

19 lines
505 B
Bash
Raw Normal View History

2024-03-11 01:57:32 +01:00
#!/bin/bash
echo ":: Cleaning built files"
2024-03-12 19:30:56 +01:00
rm -rf linux-*.tar.sign linux-*.tar.xz linux-server-kernel-*.pkg.tar.zst linux-server-kernel-headers-*.pkg.tar.zst more-uarches-*.tar.gz patch-*.xz cl-linux pkg
2024-03-11 01:57:32 +01:00
function ask_cleansrc() {
read -rp "Clean src/ directory too [y/N]? " CLEANTOOL_SRC
case "${CLEANTOOL_SRC}" in
"y"|"Y")
rm -rf src
;;
"n"|"N"|"")
;;
*)
echo ":: Error: Invalid answer. Please answer with Y or N"
ask_cleansrc
;;
esac
}
ask_cleansrc