From 407ac4b87f070cfae778200ac911b6455712b80f Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 21 Jan 2022 05:43:24 +0900 Subject: [PATCH] Prevent line splitting on modlist comparison --- dztui.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dztui.sh b/dztui.sh index 2541933..6be10a9 100644 --- a/dztui.sh +++ b/dztui.sh @@ -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