fix: test for DISK_ID_EFI and DISK_ID_BIOS variable existence before expansion (fixes #15)
This commit is contained in:
parent
f9890ed1ec
commit
1a920427a6
|
@ -32,9 +32,9 @@ function check_config() {
|
||||||
[[ $HOSTNAME =~ $hostname_regex ]] \
|
[[ $HOSTNAME =~ $hostname_regex ]] \
|
||||||
|| die "'$HOSTNAME' is not a valid hostname"
|
|| die "'$HOSTNAME' is not a valid hostname"
|
||||||
|
|
||||||
[[ -n $DISK_ID_ROOT ]] \
|
[[ -v "DISK_ID_ROOT" && -n $DISK_ID_ROOT ]] \
|
||||||
|| die "You must assign DISK_ID_ROOT"
|
|| die "You must assign DISK_ID_ROOT"
|
||||||
[[ -n $DISK_ID_EFI ]] || [[ -n $DISK_ID_BIOS ]] \
|
[[ -v "DISK_ID_EFI" && -n $DISK_ID_EFI ]] || [[ -v "DISK_ID_BIOS" && -n $DISK_ID_BIOS ]] \
|
||||||
|| die "You must assign DISK_ID_EFI or DISK_ID_BIOS"
|
|| die "You must assign DISK_ID_EFI or DISK_ID_BIOS"
|
||||||
|
|
||||||
[[ -v "DISK_ID_BIOS" ]] && [[ ! -v "DISK_ID_TO_UUID[$DISK_ID_BIOS]" ]] \
|
[[ -v "DISK_ID_BIOS" ]] && [[ ! -v "DISK_ID_TO_UUID[$DISK_ID_BIOS]" ]] \
|
||||||
|
|
Loading…
Reference in New Issue