From 93a9cffaf1c2a91105aab6d9a0b0d8534f5af5e2 Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 24 Jun 2021 04:16:27 +0300 Subject: [PATCH] hooks/luks.init: allow word-splitting to remove empty args Fixes: #25 --- hooks/luks/luks.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/luks/luks.init b/hooks/luks/luks.init index 04b610d..193d2d8 100644 --- a/hooks/luks/luks.init +++ b/hooks/luks/luks.init @@ -11,7 +11,7 @@ mkdir -p /run/cryptsetup resolve_device "$luks_root" DM_DISABLE_UDEV=1 cryptsetup open \ - "${luks_discard:+--allow-discards}" \ - "${luks_header:+--header=$luks_header}" \ - "${luks_key:+--key-file=$luks_key}" -- "$device" \ + ${luks_discard:+--allow-discards} \ + ${luks_header:+--header=$luks_header} \ + ${luks_key:+--key-file=$luks_key} -- "$device" \ "${luks_name:-crypt-${device##*/}}" || panic "failed to unlock LUKS"