mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
Merge #253
253: disko cli: allow mode to be disko r=Lassulus a=Lassulus Co-authored-by: lassulus <git@lassul.us>
This commit is contained in:
commit
92504e2780
1 changed files with 3 additions and 3 deletions
6
disko
6
disko
|
@ -18,7 +18,7 @@ or $0 [options] --flake github:somebody/somewhere
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
* -m, --mode mode
|
* -m, --mode mode
|
||||||
set the mode, either create or mount
|
set the mode, either create, mount, zap_create_mount or disko
|
||||||
* -f, --flake uri
|
* -f, --flake uri
|
||||||
fetch the disko config relative to this flake's root
|
fetch the disko config relative to this flake's root
|
||||||
* --arg name value
|
* --arg name value
|
||||||
|
@ -93,8 +93,8 @@ while [[ $# -gt 0 ]]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! { [[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]]; }; then
|
if ! { [[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]] || [[ $mode = "disko" ]]; }; then
|
||||||
abort "mode must be either create, mount or zap_create_mount"
|
abort "mode must be either create, mount, zap_create_mount or disko"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${flake+x}" ]]; then
|
if [[ -n "${flake+x}" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue