Prevent line splitting on modlist comparison

This commit is contained in:
aclist authored and GitHub committed 2022-01-21 05:43:24 +09:00
1 parent cf2555bf5a
commit 407ac4b87f
1 file changed
+6 -1
+6 -1
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