fix: upgrade mods was overwriting files

This commit is contained in:
v4n
2025-03-07 23:24:30 +02:00
parent 797739ea7a
commit 3593e32a7b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION="0.3.13" VERSION="0.3.14"
# --- Globals --- # --- Globals ---
@@ -448,7 +448,7 @@ function upgrade_mods() {
done done
for base_name in "${!upgrades_to_apply[@]}"; do for base_name in "${!upgrades_to_apply[@]}"; do
IFS=$'\n' mods_to_upgrade=($(ls "$MODS_DIR/$base_name"* 2>/dev/null | sort -V)); unset IFS IFS=$'\n' mods_to_upgrade=($(ls "$MODS_DIR/$base_name"* 2>/dev/null | sort -rV)); unset IFS
for mod in "${mods_to_upgrade[@]}"; do for mod in "${mods_to_upgrade[@]}"; do
mod=$(get_filename_without_path "$mod") mod=$(get_filename_without_path "$mod")
+1 -1
View File
@@ -1 +1 @@
0.3.13 0.3.14