1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 12:03:00 +02:00

Prevent line splitting on modlist comparison

This commit is contained in:
aclist 2022-01-21 05:43:24 +09:00 committed by GitHub
parent cf2555bf5a
commit 407ac4b87f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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