Add return codes everywhere
This commit is contained in:
parent
d40c5deb44
commit
858ca5d3ab
@ -18,3 +18,4 @@ else
|
||||
amf_return=1
|
||||
fi
|
||||
fi
|
||||
return $amf_return
|
||||
|
@ -13,3 +13,4 @@ else
|
||||
echo "~> Failed. :("
|
||||
amf_return=1
|
||||
fi
|
||||
return $amf_return
|
||||
|
@ -28,3 +28,4 @@ mkdir -p /mnt/boot
|
||||
mount ${blockdevice}1 /mnt/boot
|
||||
|
||||
amf_return=0
|
||||
return $amf_return
|
||||
|
@ -4,3 +4,4 @@ echo "~> Installing 'base' group and 'grub', 'efibootmgr'"
|
||||
pacstrap /mnt base grub efibootmgr
|
||||
|
||||
amf_return=0
|
||||
return $amf_return
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user