mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 07:02:50 +01:00
Prevent line splitting on modlist comparison
This commit is contained in:
1 parent
cf2555bf5a
commit
407ac4b87f
1 file changed
+6
-1
@@ -232,10 +232,15 @@ validate_mods(){
|
|||||||
tput cnorm
|
tput cnorm
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
server_modlist(){
|
||||||
|
for i in "${newlist[@]}"; do
|
||||||
|
printf "$i\n"
|
||||||
|
done
|
||||||
|
}
|
||||||
compare(){
|
compare(){
|
||||||
fetch_mods
|
fetch_mods
|
||||||
validate_mods
|
validate_mods
|
||||||
diff=$(comm -23 <(echo -e "${newlist[@]}" | sort) <(installed_mods | sort))
|
diff=$(comm -23 <(server_modlist | sort) <(installed_mods | sort))
|
||||||
}
|
}
|
||||||
connect(){
|
connect(){
|
||||||
compare
|
compare
|
||||||
|
|||||||
Reference in new issue
Block a user