Merge pull request #869 from nix-community/fix-legacy-command-cli

cli: Fix legacy aliases
This commit is contained in:
Jörg Thalheim authored and GitHub committed 2024-11-10 22:31:31 +01:00
commit 486250f404
1 file changed
+5
+5
View File
@@ -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