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

(cherry picked from commit 8497842c3f)
This commit is contained in:
phaer 2025-11-07 23:47:58 +01:00 committed by github-actions[bot]
parent 837f816bd6
commit 1fa0a68c01

View file

@ -142,7 +142,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)