From bff468dd08e7d18020582b1766d12be5dfeb9ac0 Mon Sep 17 00:00:00 2001 From: leca Date: Sun, 29 Sep 2024 18:09:56 +0300 Subject: [PATCH] force replace existing --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6e06059..13c297f 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ download_and_install_game() { download_url=$(curl -X GET --silent "$API_URL/packages/${1}/" | jq ".url" | tr -d '"') cd games || exit wget -O game.zip "${download_url}" - unzip game.zip + unzip -foqq game.zip rm game.zip cd ../ # data } @@ -57,7 +57,7 @@ download_and_install_mod () { mod_file="${mods_path}/mod.zip" echo "Writing to ${mod_file} content from url ${mod_url}" wget -O "${mod_file}" "${mod_url}" - unzip "${mod_file}" -d "${mods_path}" + unzip -foqq "${mod_file}" -d "${mods_path}" rm "${mod_file}" } @@ -70,6 +70,7 @@ get_dependencies () { amount_of_deps="${#deps_array[@]}" if [ "$amount_of_deps" -eq 0 ]; then + calculated_dependencies+=("$1") echo "No deps for mod" return fi