Enable quiting after failed quiet command

This commit is contained in:
Augusto Gunsch 2021-08-10 10:04:19 -03:00
parent 409939c2c7
commit b7021341fa
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 4 deletions

View File

@ -11,9 +11,7 @@ qpopd() {
quiet() {
local DUMMY
set +e
DUMMY=$($@ 2>&1 > /dev/null)
set -e
}
@ -169,9 +167,8 @@ install_base() {
echo -n "Generating fstab..."
fstabgen -U /mnt >> /mnt/etc/fstab
echo "done"
elif [ "$DISTRO" = "arch" ]; then
quiet pacstrap /mnt base linux linux-firmware grub vi
quiet pacstrap /mnt base base-devel linux linux-firmware grub vi
echo "done"
echo -n "Generating fstab..."
genfstab -U /mnt >> /mnt/etc/fstab