fix
This commit is contained in:
parent
bff468dd08
commit
22668fa16e
|
@ -63,6 +63,7 @@ download_and_install_mod () {
|
||||||
|
|
||||||
# 1 = mod id
|
# 1 = mod id
|
||||||
get_dependencies () {
|
get_dependencies () {
|
||||||
|
calculated_dependencies+=("$1")
|
||||||
echo Checking deps for "$1"
|
echo Checking deps for "$1"
|
||||||
deps=$(curl --silent -X GET "$API_URL/packages/${1}/dependencies/")
|
deps=$(curl --silent -X GET "$API_URL/packages/${1}/dependencies/")
|
||||||
deps=$(echo "$deps" | jq ".\"${1}\"")
|
deps=$(echo "$deps" | jq ".\"${1}\"")
|
||||||
|
@ -70,7 +71,6 @@ get_dependencies () {
|
||||||
amount_of_deps="${#deps_array[@]}"
|
amount_of_deps="${#deps_array[@]}"
|
||||||
|
|
||||||
if [ "$amount_of_deps" -eq 0 ]; then
|
if [ "$amount_of_deps" -eq 0 ]; then
|
||||||
calculated_dependencies+=("$1")
|
|
||||||
echo "No deps for mod"
|
echo "No deps for mod"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue