From 3b6033f164cd89c12911aab1c3066438b0c3d06f Mon Sep 17 00:00:00 2001 From: Rodrigo Luzuriaga Date: Sat, 27 Jul 2024 20:16:40 -0700 Subject: [PATCH] Fix broken install dependencies if statement --- dependencies.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies.sh b/dependencies.sh index 6d4be37..775208b 100644 --- a/dependencies.sh +++ b/dependencies.sh @@ -91,8 +91,8 @@ function checkDependencies() { function installDependencies() { local install_dep=$1 - if [[ $install_dep != "y" ]]; then - echo "Exiting now, please install the packages manually." + if [[ $install_dep != "y" && -n $missing_packages ]]; then + echo "Exiting now, please install the packages manually or add the -i or --install-dep flag to install them automatically." exit 1 fi