mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Merge pull request #869 from nix-community/fix-legacy-command-cli
cli: Fix legacy aliases
This commit is contained in:
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