Skip to content

Commit 16361d2

Browse files
committed
ssh/download: fix :recursive and :preserve flags arity errors.
Recursive still doesn't work correctly: clj-ssh writes every file into the same output.
1 parent c58b4ee commit 16361d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clj_ssh/ssh.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,9 @@ cmd specifies a command to exec. Valid commands are:
10841084
(->>
10851085
(select-keys opts [:recursive :preserve])
10861086
(filter val)
1087-
(map (fn [k v] (k flags))))))
1087+
(map (comp flags key)))))
10881088
(string/join " " remote-paths))
1089+
_ (println cmd)
10891090
_ (logging/tracef "scp-from: %s" cmd)
10901091
{:keys [^ChannelExec channel
10911092
^PipedInputStream out-stream]}

0 commit comments

Comments
 (0)