switch-to-configuration-ng: fix error message for preSwitchCheck arg (#459604)

This commit is contained in:
Aleksana
2025-11-08 15:14:51 +00:00
committed by GitHub
@@ -149,7 +149,7 @@ fn parse_os_release() -> Result<HashMap<String, String>> {
fn do_pre_switch_check(command: &str, toplevel: &Path, action: &Action) -> Result<()> {
let mut cmd_split = command.split_whitespace();
let Some(argv0) = cmd_split.next() else {
bail!("missing first argument in install bootloader commands");
bail!("missing first argument in pre-switch check");
};
match std::process::Command::new(argv0)