From f8dd4249ade22f3bc483579d5d3723de7424f8fc Mon Sep 17 00:00:00 2001 From: Kshitij Date: Wed, 23 Oct 2024 13:20:28 +0530 Subject: [PATCH] Script no longer exits the directory already exists. --- ada-setup.sh | 3 +-- setup.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ada-setup.sh b/ada-setup.sh index 2685b70..fa283cb 100755 --- a/ada-setup.sh +++ b/ada-setup.sh @@ -67,8 +67,7 @@ if [ ! -d "$PROJECT_DIR" ]; then cp "./alt-temp.py" "./blinka-test.py" "$PROJECT_DIR/" echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n" else - echo -e "$line\n$PROJECT_DIR already exists. Please delete the folder before running this script.\n$line\n\nExiting..." - exit 1 + echo -e "$line\n$PROJECT_DIR already exists.\n$line\n" fi # Create and activate Python virtual environment diff --git a/setup.sh b/setup.sh index a11c0c2..54b7f46 100755 --- a/setup.sh +++ b/setup.sh @@ -59,8 +59,7 @@ if [ ! -d "$PROJECT_DIR" ]; then cp -r "./DHT11_Python/" "$PROJECT_DIR/DHT11_Python" echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n" else - echo -e "$line\n$PROJECT_DIR already exists. Please delete the folder before running this script.\n$line\n\nExiting..." - exit 1 + echo -e "$line\n$PROJECT_DIR already exists.\n$line\n" fi # Create and activate Python virtual environment