From 96edea1bad8923b291b7d2fab095006599dbb1e0 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 16 Feb 2022 11:26:17 -0300 Subject: [PATCH] Fix whiptail bug --- scripts/linkFiles.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index 951e7ff..e753d89 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -95,6 +95,7 @@ loopThroughFiles() { msg="\nSelect the files that you want to install." files=("$(displayDialogBox --checklist "$msg" VALUES "${files[@]}" 3>&1 1>&2 2>&3)") + files=(${files[@]//$'\n'/ }) fi password=$(displayDialogBox --passwordbox "\nEnter your password." VALUES 3>&1 1>&2 2>&3)