Forbid running install steps on stage 0

This commit is contained in:
Jakub Beránek 2025-08-15 20:33:29 +02:00
parent e8af2365c0
commit 2074e1344d
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -1045,6 +1045,10 @@ impl Config {
eprintln!("ERROR: cannot dist anything on stage 0. Use at least stage 1.");
exit!(1);
}
(0, Subcommand::Install { .. }) => {
eprintln!("ERROR: cannot install anything on stage 0. Use at least stage 1.");
exit!(1);
}
_ => {}
}