Fix pre-popopulate script name (#99)

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
fe08568d4a/nix/modules/default.nix (L175)).
This commit fixes the problem.
This commit is contained in:
Michal Sojka 2024-06-30 16:22:59 +02:00 committed by GitHub
parent fe08568d4a
commit cb56e9662a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
)?;