Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove tempfiles after running scripts remotely

  • Loading branch information...
commit 4640fada5f414883119c79d74984850792aa75db 1 parent 4273adf
@pyr pyr authored hugoduncan committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/pallet/ssh/execute.clj
View
4 src/pallet/ssh/execute.clj
@@ -83,6 +83,10 @@
;; the script.
session (assoc-in
session [:plan-state :node-values node-value-path] result)]
+ (transport/exec
+ connection
+ {:execv [(stevedore/script (rm -f ~tmpfile))]}
+ {})
[(update-in result [:out] clean-f) session]))))
(defn- ssh-upload
Please sign in to comment.
Something went wrong with that request. Please try again.