switch-to-configuration-ng: fix error message for preSwitchCheck arg

This commit is contained in:
phaer
2025-11-07 23:47:58 +01:00
parent bc1344cb9b
commit 8497842c3f
@@ -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)