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// / }"