diff --git a/install.sh b/install.sh index 13c297f..5a15f5c 100755 --- a/install.sh +++ b/install.sh @@ -63,6 +63,7 @@ download_and_install_mod () { # 1 = mod id get_dependencies () { + calculated_dependencies+=("$1") echo Checking deps for "$1" deps=$(curl --silent -X GET "$API_URL/packages/${1}/dependencies/") deps=$(echo "$deps" | jq ".\"${1}\"") @@ -70,7 +71,6 @@ get_dependencies () { amount_of_deps="${#deps_array[@]}" if [ "$amount_of_deps" -eq 0 ]; then - calculated_dependencies+=("$1") echo "No deps for mod" return fi