From 3738f13cf0cf8d6a8068398ca96f3eefed41c001 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Thu, 12 Aug 2021 22:09:42 -0300 Subject: [PATCH] Fix new function --- install.sh | 1 + post-install.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 }