Browse Source

fix working directory calculation

pull/1/head
wes 7 years ago
parent
commit
e13d025c7f
  1. 7
      bolt.rkt

7
bolt.rkt

@ -23,7 +23,10 @@
(define-syntax-rule (define-syntax-rule
(with-cwd dir expr ...) (with-cwd dir expr ...)
(parameterize (parameterize
([cwd (format "~a/~a" (cwd) dir)]) ([cwd
(match (substring dir 0 1)
["/" dir]
[_ (format "~a/~a" (cwd) dir)])])
(begin expr ...))) (begin expr ...)))
(define-syntax-rule (define-syntax-rule
@ -48,7 +51,7 @@
(define (exec cmd) (define (exec cmd)
(displayln (displayln
(format "on ~a:" (remote-host (host)))) (format "Executed on ~a:" (remote-host (host))))
(ssh (host) (ssh (host)
(as-user (as-user
(string-append (string-append

Loading…
Cancel
Save