From c72ceb899ee333b579b7fafb8b28051b6e5e2faf Mon Sep 17 00:00:00 2001 From: v4n <105587619+v4n00@users.noreply.github.com> Date: Tue, 16 Sep 2025 22:49:21 +0300 Subject: [PATCH] fix: nexus downloaded file http encoding --- h2mm | 6 +++--- version | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/h2mm b/h2mm index c62eaf3..c831f7a 100755 --- a/h2mm +++ b/h2mm @@ -1,7 +1,7 @@ #!/usr/bin/env bash -VERSION="0.6.14" +VERSION="0.6.15" # --- Globals --- @@ -933,7 +933,7 @@ function mod_install() { fi done - if [[ ${#filtered_dirs[@]} -ne 0 ]]; then + if [[ ${#filtered_dirs[@]} -gt 1 ]]; then log INFO "Multiple mod variants found for mod ${mod_name}:" # print the variant name by display all the directories (and how they're nested) @@ -1916,7 +1916,7 @@ function nexus() { log INFO "" # extract file name - file_name=$(echo "$download_url" | awk -F/ '{print $6}' | cut -d\? -f1) + file_name=$(echo "$download_url" | awk -F/ '{print $6}' | cut -d\? -f1 | sed 's/%20/ /g') output_folder="$(mktemp -d)" trap 'read -p "Press Enter to continue..."; rm -rf "$output_folder"' EXIT output_file="$output_folder/$file_name" diff --git a/version b/version index fcbaa84..6769f67 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.6.14 +0.6.15