Fix new function
This commit is contained in:
parent
c1ae4f21f8
commit
3738f13cf0
@ -353,6 +353,7 @@ post_install() {
|
|||||||
mv post-install.sh /mnt/root
|
mv post-install.sh /mnt/root
|
||||||
chmod +x /mnt/root/post-install.sh
|
chmod +x /mnt/root/post-install.sh
|
||||||
print_phase "Post installation"
|
print_phase "Post installation"
|
||||||
|
echo "From now on, other script will be run"
|
||||||
right_chroot /mnt /root/post-install.sh -nu "$PERSONAL_USER"
|
right_chroot /mnt /root/post-install.sh -nu "$PERSONAL_USER"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,12 @@ quiet() {
|
|||||||
set -e
|
set -e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ultra_quiet() {
|
||||||
|
local DUMMY
|
||||||
|
DUMMY=$($@ 2>&1 > /dev/null)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
### CD TO MY DIR ###
|
### CD TO MY DIR ###
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
@ -231,8 +237,8 @@ install_skip_missing() {
|
|||||||
echo -ne "Installing ${LGREEN}$1${NC} ($2)..."
|
echo -ne "Installing ${LGREEN}$1${NC} ($2)..."
|
||||||
fi
|
fi
|
||||||
set +e
|
set +e
|
||||||
quiet pacman -Sq --needed --noconfirm $1
|
ultra_quiet pacman -Sq --needed --noconfirm $1
|
||||||
[ $? -ne 0 ] && echo "Not found: skipping." || echo "done"
|
[ $? -ne 0 ] && echo "Not found: skipping" || echo "done"
|
||||||
set -e
|
set -e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user