Skip to content

Commit 85f48b9

Browse files
committed
Fix syntax
1 parent 2e87a3d commit 85f48b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/post/multi/gather/docker_creds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run
3232
# Array#select! is only in 1.9
3333
paths = paths.select { |d| directory?(d) }
3434

35-
if paths.nil? or paths.empty?
35+
if paths.nil? || paths.empty?
3636
print_error("No users found with a .docker directory")
3737
return
3838
end
@@ -47,7 +47,7 @@ def download_loot(paths)
4747
file = "config.json"
4848
target = "#{path}/#{file}"
4949

50-
if file?(target)
50+
if file? target
5151
print_status("Downloading #{target} -> #{file}")
5252
extract(target)
5353
end

modules/post/multi/gather/gpg_creds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def run
2929
# Array#select! is only in 1.9
3030
paths = paths.select { |d| directory?(d) }
3131

32-
if paths.nil? or paths.empty?
32+
if paths.nil? || paths.empty?
3333
print_error("No users found with a .gnupg directory")
3434
return
3535
end
@@ -49,7 +49,7 @@ def download_loot(paths)
4949
if directory?(target)
5050
next
5151
end
52-
print_status("Downloading #{path}#{sep}#{file} -> #{file}")
52+
print_status("Downloading #{target} -> #{file}")
5353
data = read_file(target)
5454
file = file.split(sep).last
5555
type = file.gsub(/\.gpg.*/, "").gsub(/gpg\./, "")

0 commit comments

Comments
 (0)