diff --git a/install.sh b/install.sh index 24616a6..d688a44 100755 --- a/install.sh +++ b/install.sh @@ -353,6 +353,7 @@ post_install() { mv post-install.sh /mnt/root chmod +x /mnt/root/post-install.sh print_phase "Post installation" + echo "From now on, other script will be run" right_chroot /mnt /root/post-install.sh -nu "$PERSONAL_USER" } diff --git a/post-install.sh b/post-install.sh index 613344e..f45f4a7 100755 --- a/post-install.sh +++ b/post-install.sh @@ -21,6 +21,12 @@ quiet() { set -e } +ultra_quiet() { + local DUMMY + DUMMY=$($@ 2>&1 > /dev/null) +} + + ### CD TO MY DIR ### cd "$(dirname "$0")" @@ -231,8 +237,8 @@ install_skip_missing() { echo -ne "Installing ${LGREEN}$1${NC} ($2)..." fi set +e - quiet pacman -Sq --needed --noconfirm $1 - [ $? -ne 0 ] && echo "Not found: skipping." || echo "done" + ultra_quiet pacman -Sq --needed --noconfirm $1 + [ $? -ne 0 ] && echo "Not found: skipping" || echo "done" set -e }