1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-12-23 02:09:51 +01:00

krops runCommand: derive script name from command

This commit is contained in:
tv 2020-06-08 22:59:09 +02:00
parent 81c4885124
commit 486300fb35

View file

@ -21,7 +21,7 @@ in
if lib.isLocalTarget target
then command
else
writers.writeDash "build.${target.host}" ''
writers.writeDash "krops.${target.host}.${lib.firstWord command}" ''
exec ${openssh}/bin/ssh ${lib.escapeShellArgs (lib.flatten [
(lib.optionals (target.user != "") ["-l" target.user])
"-p" target.port