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.
2 parents 32998d9 + 89705cc commit a550226Copy full SHA for a550226
modules/post/windows/gather/credentials/steam.rb
@@ -42,12 +42,12 @@ def run
42
# We will just use an x64 only defined env variable to check.
43
progfiles_env = session.sys.config.getenvs('ProgramFiles(X86)', 'ProgramFiles')
44
progfilesx86 = progfiles_env['ProgramFiles(X86)']
45
- if not progfilesx86.empty? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
+ if not progfilesx86.blank? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
46
progs = progfilesx86 # x64
47
else
48
progs = progfiles_env['ProgramFiles'] # x86
49
end
50
- path = progs + '\\Steam\\config'
+ path = "#{progs}\\Steam\\config"
51
52
print_status("Checking for Steam configs in #{path}")
53
0 commit comments