mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 22:43:28 +01:00
luks: drop unnecessary subshell
This commit is contained in:
1 parent
06fb9283ca
commit
6bb82b77ce
1 file changed
+1
-1
+1
-1
@@ -130,7 +130,7 @@ in
|
|||||||
_create = diskoLib.mkCreateOption {
|
_create = diskoLib.mkCreateOption {
|
||||||
inherit config options;
|
inherit config options;
|
||||||
default = ''
|
default = ''
|
||||||
if ! blkid "${config.device}" >/dev/null || ! (cryptsetup isLuks "${config.device}"); then
|
if ! blkid "${config.device}" >/dev/null || ! cryptsetup isLuks "${config.device}"; then
|
||||||
${lib.optionalString config.askPassword ''
|
${lib.optionalString config.askPassword ''
|
||||||
promptSecret() {
|
promptSecret() {
|
||||||
prompt=$1
|
prompt=$1
|
||||||
|
|||||||
Reference in new issue
Block a user