fix: list verbose mode not crashing

This commit is contained in:
v4n
2025-06-21 11:46:11 +03:00
parent 2c51e2bfd3
commit a75d92252e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION="0.6.0" VERSION="0.6.1"
# --- Globals --- # --- Globals ---
@@ -1053,7 +1053,7 @@ function mod_list() {
printf "%2s. [%s%s%s/%s%s%s] %s %s\n", mod_index, STATUS_COLOR, mod_status, NC, MOD_TYPE_COLOR, mod_type, NC, mod_name, mod_version; printf "%2s. [%s%s%s/%s%s%s] %s %s\n", mod_index, STATUS_COLOR, mod_status, NC, MOD_TYPE_COLOR, mod_type, NC, mod_name, mod_version;
if (verbose == "true") { if (verbose == "true") {
gsub(/ /,"\n -> ", mod_files); gsub(/ /,"\n -> ", mod_files);
if (mod_id != "") printf " => Nexus mod ID: %s / Nexus file ID: %s\n", mod_id; if (mod_id != "") printf " => Nexus mod ID: %s\n", mod_id;
printf " -> %s\n", mod_files; printf " -> %s\n", mod_files;
} }
}' "$DB_FILE" }' "$DB_FILE"
+1 -1
View File
@@ -1 +1 @@
0.6.0 0.6.1