From 858ca5d3abcb4829f2b56c9549bdafca83567077 Mon Sep 17 00:00:00 2001 From: maride Date: Mon, 5 Mar 2018 14:22:08 +0100 Subject: [PATCH] Add return codes everywhere --- steps/10-wipe.step | 1 + steps/20-partition.step | 1 + steps/30-formatting.step | 1 + steps/40-install.step | 1 + steps/50-configure.step | 1 + 5 files changed, 5 insertions(+) diff --git a/steps/10-wipe.step b/steps/10-wipe.step index a4780ff..e853f43 100755 --- a/steps/10-wipe.step +++ b/steps/10-wipe.step @@ -18,3 +18,4 @@ else amf_return=1 fi fi +return $amf_return diff --git a/steps/20-partition.step b/steps/20-partition.step index 5f435e8..cedf425 100755 --- a/steps/20-partition.step +++ b/steps/20-partition.step @@ -13,3 +13,4 @@ else echo "~> Failed. :(" amf_return=1 fi +return $amf_return diff --git a/steps/30-formatting.step b/steps/30-formatting.step index 1676651..3ebe3ed 100755 --- a/steps/30-formatting.step +++ b/steps/30-formatting.step @@ -28,3 +28,4 @@ mkdir -p /mnt/boot mount ${blockdevice}1 /mnt/boot amf_return=0 +return $amf_return diff --git a/steps/40-install.step b/steps/40-install.step index f63bdda..f8c5458 100755 --- a/steps/40-install.step +++ b/steps/40-install.step @@ -4,3 +4,4 @@ echo "~> Installing 'base' group and 'grub', 'efibootmgr'" pacstrap /mnt base grub efibootmgr amf_return=0 +return $amf_return diff --git a/steps/50-configure.step b/steps/50-configure.step index 859ab2d..c2fb478 100755 --- a/steps/50-configure.step +++ b/steps/50-configure.step @@ -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