Add return codes everywhere

This commit is contained in:
maride 2018-03-05 14:22:08 +01:00
parent d40c5deb44
commit 858ca5d3ab
5 changed files with 5 additions and 0 deletions

View File

@ -18,3 +18,4 @@ else
amf_return=1
fi
fi
return $amf_return

View File

@ -13,3 +13,4 @@ else
echo "~> Failed. :("
amf_return=1
fi
return $amf_return

View File

@ -28,3 +28,4 @@ mkdir -p /mnt/boot
mount ${blockdevice}1 /mnt/boot
amf_return=0
return $amf_return

View File

@ -4,3 +4,4 @@ echo "~> Installing 'base' group and 'grub', 'efibootmgr'"
pacstrap /mnt base grub efibootmgr
amf_return=0
return $amf_return

View File

@ -43,3 +43,4 @@ echo "~> Patching pacman.conf for some pacman magic."
arch-chroot /mnt sed -i "s/\[options\]/\[options\]\nILoveCandy/g" /etc/pacman.conf
amf_return=0
return $amf_return