From 9f363f493bd8fffcf47865c9060dcbaad57ddabe Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 27 Jul 2020 12:01:21 -0400 Subject: [PATCH] Closes #4909: Check for contents in local_requirements.txt before calling pip --- upgrade.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upgrade.sh b/upgrade.sh index 75afa1db4..66ba7b39f 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -40,11 +40,12 @@ echo "Installing core dependencies ($COMMAND)..." eval $COMMAND || exit 1 # Install optional packages (if any) -if [ -f "local_requirements.txt" ] -then +if [ -s "local_requirements.txt" ]; then COMMAND="pip3 install -r local_requirements.txt" echo "Installing local dependencies ($COMMAND)..." eval $COMMAND || exit 1 +elif [ -f "local_requirements.txt" ]; then + echo "Skipping local dependencies (local_requirements.txt is empty)" else echo "Skipping local dependencies (local_requirements.txt not found)" fi