File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -686,16 +686,15 @@ config options."
686
686
{:channel exec
687
687
:out-stream out-inputstream
688
688
:err-stream err-inputstream}
689
- (with-channel-connection exec
690
- (while (connected-channel? exec)
691
- (Thread/sleep 100 ))
692
- {:exit (.getExitStatus exec)
693
- :out (if (= :bytes out)
694
- (.toByteArray ^ByteArrayOutputStream out-stream)
695
- (.toString out-stream))
696
- :err (if (= :bytes out)
697
- (.toByteArray ^ByteArrayOutputStream err-stream)
698
- (.toString err-stream))}))))
689
+ (do (while (connected-channel? exec)
690
+ (Thread/sleep 100 ))
691
+ {:exit (.getExitStatus exec)
692
+ :out (if (= :bytes out)
693
+ (.toByteArray ^ByteArrayOutputStream out-stream)
694
+ (.toString out-stream))
695
+ :err (if (= :bytes out)
696
+ (.toByteArray ^ByteArrayOutputStream err-stream)
697
+ (.toString err-stream))}))))
699
698
700
699
(defn ssh
701
700
" Execute commands over ssh.
You can’t perform that action at this time.
0 commit comments