Skip to content

Commit a550226

Browse files
committed
Land rapid7#7305, missing env var fix for Steam module
2 parents 32998d9 + 89705cc commit a550226

File tree

1 file changed

+2
-2
lines changed
  • modules/post/windows/gather/credentials

1 file changed

+2
-2
lines changed

modules/post/windows/gather/credentials/steam.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def run
4242
# We will just use an x64 only defined env variable to check.
4343
progfiles_env = session.sys.config.getenvs('ProgramFiles(X86)', 'ProgramFiles')
4444
progfilesx86 = progfiles_env['ProgramFiles(X86)']
45-
if not progfilesx86.empty? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
45+
if not progfilesx86.blank? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
4646
progs = progfilesx86 # x64
4747
else
4848
progs = progfiles_env['ProgramFiles'] # x86
4949
end
50-
path = progs + '\\Steam\\config'
50+
path = "#{progs}\\Steam\\config"
5151

5252
print_status("Checking for Steam configs in #{path}")
5353

0 commit comments

Comments
 (0)