more quotes to make shellcheck happy

This commit is contained in:
lassulus 2023-02-14 08:35:12 +01:00
parent 6d630b8fe4
commit 6da7333a76
6 changed files with 11 additions and 7 deletions

View file

@ -27,7 +27,9 @@
_create = diskoLib.mkCreateOption {
inherit config options;
default = _: ''
vgcreate ${config.name} $(tr '\n' ' ' < $disko_devices_dir/lvm_${config.name})
readarray -t lvm_devices < <(cat "$disko_devices_dir"/lvm_${config.name})
vgcreate ${config.name} \
"''${lvm_devices[@]}"
${lib.concatMapStrings (lv: lv._create {vg = config.name; }) (lib.attrValues config.lvs)}
'';
};