Skip to content

Commit

Permalink
Remove virtualenv after script is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
rehan892 committed Dec 23, 2024
1 parent 492cef0 commit ee8aec0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scaf
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ command_exists() {
command -v "$1" > /dev/null 2>&1
}

# Install required python dependencies
if ! command_exists pip; then
echo "pip is not installed. Installing pip..."
curl -sS https://bootstrap.pypa.io/get-pip.py | $PYTHON_CMD
Expand Down Expand Up @@ -273,5 +272,11 @@ if [ $? -eq 0 ]; then
party_popper
else
echo "Failed to create project."
deactivate
rm -rf .venv
exit 1
fi

echo "Deactivating and deleting the virtual environment..."
deactivate
rm -rf .venv

0 comments on commit ee8aec0

Please sign in to comment.