mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Fix array used for mod concatenation
This commit is contained in:
1 parent
f4f58f698f
commit
94add8d983
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=1.1.1
|
version=1.1.2
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
|
workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
|
||||||
@@ -216,7 +216,7 @@ installed_mods(){
|
|||||||
ls -1 "$workshop_dir"
|
ls -1 "$workshop_dir"
|
||||||
}
|
}
|
||||||
concat_mods(){
|
concat_mods(){
|
||||||
readarray -t serv <<< "$remote_mods"
|
readarray -t serv <<< "$(server_modlist)"
|
||||||
for i in "${serv[@]}"; do
|
for i in "${serv[@]}"; do
|
||||||
id=$(awk -F"= " '/publishedid/ {print $2}' "$workshop_dir"/$i/meta.cpp | awk -F\; '{print $1}')
|
id=$(awk -F"= " '/publishedid/ {print $2}' "$workshop_dir"/$i/meta.cpp | awk -F\; '{print $1}')
|
||||||
mod=$(awk -F\" '/name/ {print $2}' "$workshop_dir"/$i/meta.cpp | sed -E 's/[^[:alpha:]0-9]+/_/g; s/^_|_$//g')
|
mod=$(awk -F\" '/name/ {print $2}' "$workshop_dir"/$i/meta.cpp | sed -E 's/[^[:alpha:]0-9]+/_/g; s/^_|_$//g')
|
||||||
|
|||||||
Reference in new issue
Block a user