mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Closes #4909: Check for contents in local_requirements.txt before calling pip
This commit is contained in:
parent
2972993a84
commit
9f363f493b
@ -40,11 +40,12 @@ echo "Installing core dependencies ($COMMAND)..."
|
|||||||
eval $COMMAND || exit 1
|
eval $COMMAND || exit 1
|
||||||
|
|
||||||
# Install optional packages (if any)
|
# Install optional packages (if any)
|
||||||
if [ -f "local_requirements.txt" ]
|
if [ -s "local_requirements.txt" ]; then
|
||||||
then
|
|
||||||
COMMAND="pip3 install -r local_requirements.txt"
|
COMMAND="pip3 install -r local_requirements.txt"
|
||||||
echo "Installing local dependencies ($COMMAND)..."
|
echo "Installing local dependencies ($COMMAND)..."
|
||||||
eval $COMMAND || exit 1
|
eval $COMMAND || exit 1
|
||||||
|
elif [ -f "local_requirements.txt" ]; then
|
||||||
|
echo "Skipping local dependencies (local_requirements.txt is empty)"
|
||||||
else
|
else
|
||||||
echo "Skipping local dependencies (local_requirements.txt not found)"
|
echo "Skipping local dependencies (local_requirements.txt not found)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user