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 bddf5ed commit 45801bcCopy full SHA for 45801bc
modules/post/multi/manage/zip.rb
@@ -31,9 +31,7 @@ def initialize(info={})
31
end
32
33
def get_program_file_path
34
- @program_file_path ||= lambda {
35
- session.sys.config.getenvs("ProgramFiles")['ProgramFiles']
36
- }.call
+ get_env('ProgramFiles')
37
38
39
def has_7zip?
@@ -48,7 +46,7 @@ def vbs(dest, src)
48
46
49
47
def upload_exec_vbs_zip
50
script = vbs(datastore['DESTINATION'], datastore['SOURCE'])
51
- tmp_path = "#{session.sys.config.getenvs('TEMP')['TEMP']}\\zip.vbs"
+ tmp_path = "#{get_env('TEMP')}\\zip.vbs"
52
print_status("VBS file uploaded to #{tmp_path}")
53
write_file(tmp_path, script)
54
cmd_exec("wscript.exe #{tmp_path}")
0 commit comments