From 77f75a2b88c4381933c4f1875804f6b621a79c16 Mon Sep 17 00:00:00 2001 From: Dmitrii Tochanskii Date: Thu, 2 Oct 2025 14:36:29 +0000 Subject: [PATCH] Add wipe command --- tbootstrap.sh | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tbootstrap.sh b/tbootstrap.sh index 36d0487..fffbb3e 100755 --- a/tbootstrap.sh +++ b/tbootstrap.sh @@ -33,16 +33,26 @@ function build() done } +function wipe() +{ + for pkgname in $filelist; do + rm -fr $pkgname || exit 1 + done +} + case $1 in "install") - install - ;; + install + ;; "fetch") - fetch - ;; + fetch + ;; "build") - build - ;; + build + ;; +"wipe") + wipe + ;; *) echo Unknown command ;;