Script no longer exits the directory already exists.
This commit is contained in:
parent
7e96b4cadd
commit
f8dd4249ad
@ -67,8 +67,7 @@ if [ ! -d "$PROJECT_DIR" ]; then
|
|||||||
cp "./alt-temp.py" "./blinka-test.py" "$PROJECT_DIR/"
|
cp "./alt-temp.py" "./blinka-test.py" "$PROJECT_DIR/"
|
||||||
echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n"
|
echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n"
|
||||||
else
|
else
|
||||||
echo -e "$line\n$PROJECT_DIR already exists. Please delete the folder before running this script.\n$line\n\nExiting..."
|
echo -e "$line\n$PROJECT_DIR already exists.\n$line\n"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create and activate Python virtual environment
|
# Create and activate Python virtual environment
|
||||||
|
3
setup.sh
3
setup.sh
@ -59,8 +59,7 @@ if [ ! -d "$PROJECT_DIR" ]; then
|
|||||||
cp -r "./DHT11_Python/" "$PROJECT_DIR/DHT11_Python"
|
cp -r "./DHT11_Python/" "$PROJECT_DIR/DHT11_Python"
|
||||||
echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n"
|
echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n"
|
||||||
else
|
else
|
||||||
echo -e "$line\n$PROJECT_DIR already exists. Please delete the folder before running this script.\n$line\n\nExiting..."
|
echo -e "$line\n$PROJECT_DIR already exists.\n$line\n"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create and activate Python virtual environment
|
# Create and activate Python virtual environment
|
||||||
|
Loading…
Reference in New Issue
Block a user