remove extra spaces in package list

This commit is contained in:
natemaia 2019-01-18 22:54:21 -08:00
parent e1c706eb9d
commit 627aa676c4

View File

@ -261,9 +261,12 @@ show_cfg()
local pkgs="${USER_PKGS# }" local pkgs="${USER_PKGS# }"
pkgs="${pkgs% }" pkgs="${pkgs% }"
pkgs="${pkgs% } ${PACKAGES# }" pkgs="${pkgs% } ${PACKAGES# }"
pkgs="${pkgs// / }"
pkgs="${pkgs// / }"
[[ $INSTALL_WMS == *dwm* ]] && pkgs="dwm st dmenu ${pkgs# }" [[ $INSTALL_WMS == *dwm* ]] && pkgs="dwm st dmenu ${pkgs# }"
pkgs="${pkgs# }" pkgs="${pkgs# }"
pkgs="${pkgs% }" pkgs="${pkgs% }"
pkgs="${pkgs// / }"
msgbox "$_PrepTitle" " msgbox "$_PrepTitle" "
---------- PARTITION CONFIGURATION ------------ ---------- PARTITION CONFIGURATION ------------
@ -656,7 +659,7 @@ select_packages()
USER_PKGS+="$PROF_PKGS $VIEW_PKGS $FNT_PKGS $TOR_PKGS $SYS_PKGS $EX_PKGS" USER_PKGS+="$PROF_PKGS $VIEW_PKGS $FNT_PKGS $TOR_PKGS $SYS_PKGS $EX_PKGS"
for i in $USER_PKGS; do 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 done
USER_PKGS="${USER_PKGS// / }" USER_PKGS="${USER_PKGS// / }"