mirror of
https://codeberg.org/puppe/secrets.git
synced 2025-12-20 00:42:17 +01:00
Rename key host to target
This commit is contained in:
parent
356bb03776
commit
9e3311eef2
1 changed files with 5 additions and 5 deletions
10
secrets
10
secrets
|
|
@ -76,10 +76,10 @@
|
|||
file-contract)))
|
||||
|
||||
(define config-contract
|
||||
(and/c (curryr dict-has-keys? '(host files))
|
||||
(hash/dc [k (or/c 'host 'files 'basedir)]
|
||||
(and/c (curryr dict-has-keys? '(target files))
|
||||
(hash/dc [k (or/c 'target 'files 'basedir)]
|
||||
[v (k) (case k
|
||||
[(host) string?]
|
||||
[(target) string?]
|
||||
[(basedir) string?]
|
||||
[(files) file-list-contract])])))
|
||||
|
||||
|
|
@ -220,11 +220,11 @@ EOF
|
|||
[files (map
|
||||
(curryr make-file source-basedir)
|
||||
(dict-ref config 'files))]
|
||||
[host (dict-ref config 'host)])
|
||||
[target (dict-ref config 'target)])
|
||||
(let-values ([(sp _ stdin stderr) (subprocess
|
||||
(current-output-port) #f #f
|
||||
(find-executable-path "ssh")
|
||||
host
|
||||
target
|
||||
(format
|
||||
"bash -c '~a'"
|
||||
(string-replace bootstrap-script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue