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:
@ -17,11 +17,11 @@ fi
|
||||
# Create a new virtual environment
|
||||
COMMAND="/usr/bin/python3 -m venv ${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 "required system packages installed."
|
||||
exit 1
|
||||
)
|
||||
}
|
||||
|
||||
# Activate the virtual environment
|
||||
source "${VIRTUALENV}/bin/activate"
|
||||
|
Reference in New Issue
Block a user