From ca51cc9be96437d2ec2745342749c882c0aefce0 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 4 Jun 2023 13:09:11 +0200 Subject: [PATCH] disko cli: allow mode to be disko --- disko | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disko b/disko index 817c5b6..9da4bfd 100755 --- a/disko +++ b/disko @@ -18,7 +18,7 @@ or $0 [options] --flake github:somebody/somewhere Options: * -m, --mode mode - set the mode, either create or mount + set the mode, either create, mount, zap_create_mount or disko * -f, --flake uri fetch the disko config relative to this flake's root * --arg name value @@ -93,8 +93,8 @@ while [[ $# -gt 0 ]]; do shift done -if ! { [[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]]; }; then - abort "mode must be either create, mount or zap_create_mount" +if ! { [[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]] || [[ $mode = "disko" ]]; }; then + abort "mode must be either create, mount, zap_create_mount or disko" fi if [[ -n "${flake+x}" ]]; then