Script no longer exits the directory already exists.

This commit is contained in:
K 2024-10-23 13:20:28 +05:30
parent 7e96b4cadd
commit f8dd4249ad
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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