From 1648cdbb58f4cd57c3c7c1b8ae72a825b7bcafd9 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Sat, 5 Aug 2023 21:14:59 +0200 Subject: [PATCH] meta: Allow nuke the tooling using --- skift.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/skift.sh b/skift.sh index e76647ac40..0865cb65f8 100755 --- a/skift.sh +++ b/skift.sh @@ -8,6 +8,11 @@ if [ "$CUTEKIT_NOVENV" == "1" ]; then exec cutekit $@ fi +if [ "$1" == "nuke-tools" ]; then + rm -rf .cutekit/tools .cutekit/venv + exit 0 +fi + if [ ! -f .cutekit/tools/ready ]; then if [ ! "$1" == "setup" ]; then echo "Tools not installed." @@ -25,8 +30,11 @@ if [ ! -f .cutekit/tools/ready ]; then mkdir -p .cutekit - echo "Setting up Python virtual environment..." - python3 -m venv .cutekit/venv + + if [ ! -d .cutekit/venv ]; then + echo "Setting up Python virtual environment..." + python3 -m venv .cutekit/venv + fi source .cutekit/venv/bin/activate echo "Downloading CuteKit & Chatty..."