mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
cli: Fix legacy aliases
Fixes regression introduced in daca7be309
that would cause the following behavior:
$ ./disko --mode disko --dry-run example/simple-efi.nix
/nix/store/syiv3fhzd7ar2nk5pbh56gswcs4fzvxs-disko/bin/*
Now, it returns the correct script path again:
$ ./disko --mode disko --dry-run example/simple-efi.nix
/nix/store/syiv3fhzd7ar2nk5pbh56gswcs4fzvxs-disko
This commit is contained in:
1 parent
5e40e02978
commit
7d4cbcd235
1 file changed
+5
@@ -181,6 +181,11 @@ if [[ $mode = "destroy,format,mount" && $skip_destroy_safety_check = true ]]; th
|
||||
command+=("--yes-wipe-all-disks")
|
||||
fi
|
||||
|
||||
# Legacy modes don't support --yes-wipe-all-disks and are not in `$script/bin`
|
||||
if [[ $mode = "disko" ]] || [[ $mode = "create" ]] || [[ $mode = "zap_create_mount" ]] ; then
|
||||
command=("$script")
|
||||
fi
|
||||
|
||||
if [[ -n "${dry_run+x}" ]]; then
|
||||
echo "${command[@]}"
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user