From 627aa676c49f3900007787d3d732404200b68326 Mon Sep 17 00:00:00 2001 From: natemaia Date: Fri, 18 Jan 2019 22:54:21 -0800 Subject: [PATCH] remove extra spaces in package list --- src/archlabs-installer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/archlabs-installer b/src/archlabs-installer index e8d2188..bb1657c 100755 --- a/src/archlabs-installer +++ b/src/archlabs-installer @@ -261,9 +261,12 @@ show_cfg() local pkgs="${USER_PKGS# }" pkgs="${pkgs% }" pkgs="${pkgs% } ${PACKAGES# }" + pkgs="${pkgs// / }" + pkgs="${pkgs// / }" [[ $INSTALL_WMS == *dwm* ]] && pkgs="dwm st dmenu ${pkgs# }" pkgs="${pkgs# }" pkgs="${pkgs% }" + pkgs="${pkgs// / }" msgbox "$_PrepTitle" " ---------- PARTITION CONFIGURATION ------------ @@ -656,7 +659,7 @@ select_packages() USER_PKGS+="$PROF_PKGS $VIEW_PKGS $FNT_PKGS $TOR_PKGS $SYS_PKGS $EX_PKGS" for i in $USER_PKGS; do - [[ ${PKG_EXT[$i]} && $USER_PKGS != *"${PKG_EXT[$i]}"* ]] && USER_PKGS+=" ${PKG_EXT[$i]}" + [[ ${PKG_EXT[$i]} && $USER_PKGS != *"${PKG_EXT[$i]}"* ]] && USER_PKGS="${USER_PKGS% } ${PKG_EXT[$i]}" done USER_PKGS="${USER_PKGS// / }"