mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
switch-to-configuration-ng: fix error message for preSwitchCheck arg
(cherry picked from commit 8497842c3f)
This commit is contained in:
parent
837f816bd6
commit
1fa0a68c01
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue