1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix exit statement in upgrade script

This commit is contained in:
Jeremy Stretch
2020-02-26 15:34:42 -05:00
parent 1abc82e718
commit 64c9bf27c1

View File

@ -17,11 +17,11 @@ fi
# Create a new virtual environment # Create a new virtual environment
COMMAND="/usr/bin/python3 -m venv ${VIRTUALENV}" COMMAND="/usr/bin/python3 -m venv ${VIRTUALENV}"
echo "Creating a new virtual environment at ${VIRTUALENV}..." echo "Creating a new virtual environment at ${VIRTUALENV}..."
eval $COMMAND || ( eval $COMMAND || {
echo "Failed to create the virtual environment. Check that you have the" echo "Failed to create the virtual environment. Check that you have the"
echo "required system packages installed." echo "required system packages installed."
exit 1 exit 1
) }
# Activate the virtual environment # Activate the virtual environment
source "${VIRTUALENV}/bin/activate" source "${VIRTUALENV}/bin/activate"