Skip to content

Commit

Permalink
Fix pre-popopulate script name (#99)
Browse files Browse the repository at this point in the history
Running

    nix run 'github:numtide/system-manager' -- --target-host XXX pre-populate --flake .

fails with the following error:

    bash: line 1: /nix/store/mij0x8wba9baq05863shk7hbdw39azvr-system-manager/bin/pre-populate: No such file or directory

The reason is that the script has no dash in its name (see
https://github.com/numtide/system-manager/blob/fe08568d4a68676bf961f3187964f898054ffa37/nix/modules/default.nix#L175).
This commit fixes the problem.
  • Loading branch information
wentasah authored Jun 30, 2024
1 parent fe08568 commit cb56e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ fn do_prepopulate(
if let Some(target_host) = target_host {
invoke_remote_script(
&store_path.store_path,
"pre-populate",
"prepopulate",
target_host,
use_remote_sudo,
)?;
Expand Down

0 comments on commit cb56e96

Please sign in to comment.