mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Add hard cleaner
This commit is contained in:
1 parent
280a49218b
commit
574c4975d6
1 file changed
+12
-1
+12
-1
@@ -21,6 +21,16 @@ if ! docker build --build-arg BUILDPLATFORM=linux/amd64 -t "$IMAGE_NAME" .; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# -------------------- CLEAN ALL ---------------------
|
||||
|
||||
clean() {
|
||||
echo "🧽 Cleaning all"
|
||||
docker rmi uvk5
|
||||
docker buildx prune -f
|
||||
docker buildx history ls | awk 'NR>1 {print $1}' | xargs docker buildx history rm
|
||||
make clean
|
||||
}
|
||||
|
||||
# ------------------ BUILD VARIANTS ------------------
|
||||
|
||||
custom() {
|
||||
@@ -148,6 +158,7 @@ game() {
|
||||
# ------------------ MENU ------------------
|
||||
|
||||
case "$1" in
|
||||
clean) clean ;;
|
||||
custom) custom ;;
|
||||
standard) standard ;;
|
||||
bandscope) bandscope ;;
|
||||
@@ -163,7 +174,7 @@ case "$1" in
|
||||
game
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {custom|standard|bandscope|broadcast|basic|rescueops|game|all}"
|
||||
echo "Usage: $0 {clean|custom|standard|bandscope|broadcast|basic|rescueops|game|all}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user