Skip to content

Commit

Permalink
remove mistakenly included debug
Browse files Browse the repository at this point in the history
  • Loading branch information
retrogradeorbit committed Mar 26, 2022
1 parent 842d41a commit 57d8912
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/clj/spire/pod/stream.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@

(defn write-bytes [stream base64]
(let [a (decode-base64 base64)]
(prn base64)
(prn stream a 0 (count a))
(.write stream a 0 (count a))))


Expand Down
7 changes: 1 addition & 6 deletions src/clj/spire/scp.clj
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,13 @@
^PipedOutputStream send] (ssh/streams-for-in)
cmd (format "scp %s %s -t %s" (:remote-flags opts "") (if recurse "-r" "") remote-path)
_ (debugf "scp-to: %s using executor %s" cmd (str exec))
_ (prn exec-fn session shell-fn stdin-fn opts)
_ (prn session (str "umask 0000;" (shell-fn cmd)) (stdin-fn in) :stream opts)
{:keys [out-stream]}
(if (= exec :local)
(exec-fn nil
(shell-fn
(format "bash -c 'umask 0000; %s'" cmd))
(stdin-fn in) :stream opts)
(do
;;(prn 1)
(exec-fn session (format "bash -c 'umask 0000; %s'" (shell-fn cmd)) (stdin-fn in) :stream opts)))
;;_ (prn 2)
(exec-fn session (format "bash -c 'umask 0000; %s'" (shell-fn cmd)) (stdin-fn in) :stream opts))
recv out-stream]
(debugf "scp-to %s %s" (string/join " " local-paths) remote-path)
(debug "Receive initial ACK")
Expand Down

0 comments on commit 57d8912

Please sign in to comment.