mirror of
https://github.com/aclist/dztui.git
synced 2026-10-26 12:42:34 +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
|
||||
printf "\n"
|
||||
}
|
||||
server_modlist(){
|
||||
for i in "${newlist[@]}"; do
|
||||
printf "$i\n"
|
||||
done
|
||||
}
|
||||
compare(){
|
||||
fetch_mods
|
||||
validate_mods
|
||||
diff=$(comm -23 <(echo -e "${newlist[@]}" | sort) <(installed_mods | sort))
|
||||
diff=$(comm -23 <(server_modlist | sort) <(installed_mods | sort))
|
||||
}
|
||||
connect(){
|
||||
compare
|
||||
|
||||
Reference in new issue
Block a user