Move to 'source' and own return value variable
This commit is contained in:
@@ -4,9 +4,9 @@ ping -c 1 archlinux.org 2>/tmp/arch-maride-flavour_checks_internet_error.log 1>/
|
||||
return=$?
|
||||
|
||||
if [ "$return" -eq 0 ]; then
|
||||
exit 0
|
||||
amf_return=0
|
||||
else
|
||||
echo "~> Either internet is unavailable or archlinux.org is down..."
|
||||
echo "~> (ping returned $return. Maybe check the logs in /tmp."
|
||||
exit 1
|
||||
amf_return=1
|
||||
fi
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
if [ "$bootloader" == "EFI" ]; then
|
||||
echo "~> Not an EFI host, not checking for EFI."
|
||||
exit 0
|
||||
amf_return=0
|
||||
fi
|
||||
|
||||
ls /sys/firmware/efi/efivars 2>/tmp/arch-maride-flavour_checks_uefi_error.log 1>/tmp/arch-maride-flavour_checks_uefi_out.log
|
||||
return=$?
|
||||
|
||||
if [ "$return" -eq 0 ]; then
|
||||
exit 0
|
||||
amf_return=0
|
||||
else
|
||||
echo "~> This doesn't seem to be an UEFI boot. Please boot UEFI."
|
||||
exit 1
|
||||
amf_return=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user