mirror of
https://cgit.krebsco.de/krops
synced 2024-11-26 21:19:47 +01:00
krops runCommand: derive script name from command
This commit is contained in:
parent
81c4885124
commit
486300fb35
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ in
|
||||||
if lib.isLocalTarget target
|
if lib.isLocalTarget target
|
||||||
then command
|
then command
|
||||||
else
|
else
|
||||||
writers.writeDash "build.${target.host}" ''
|
writers.writeDash "krops.${target.host}.${lib.firstWord command}" ''
|
||||||
exec ${openssh}/bin/ssh ${lib.escapeShellArgs (lib.flatten [
|
exec ${openssh}/bin/ssh ${lib.escapeShellArgs (lib.flatten [
|
||||||
(lib.optionals (target.user != "") ["-l" target.user])
|
(lib.optionals (target.user != "") ["-l" target.user])
|
||||||
"-p" target.port
|
"-p" target.port
|
||||||
|
|
Loading…
Reference in a new issue