File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
modules/post/multi/gather Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def run
32
32
# Array#select! is only in 1.9
33
33
paths = paths . select { |d | directory? ( d ) }
34
34
35
- if paths . nil? or paths . empty?
35
+ if paths . nil? || paths . empty?
36
36
print_error ( "No users found with a .docker directory" )
37
37
return
38
38
end
@@ -47,7 +47,7 @@ def download_loot(paths)
47
47
file = "config.json"
48
48
target = "#{ path } /#{ file } "
49
49
50
- if file? ( target )
50
+ if file? target
51
51
print_status ( "Downloading #{ target } -> #{ file } " )
52
52
extract ( target )
53
53
end
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def run
29
29
# Array#select! is only in 1.9
30
30
paths = paths . select { |d | directory? ( d ) }
31
31
32
- if paths . nil? or paths . empty?
32
+ if paths . nil? || paths . empty?
33
33
print_error ( "No users found with a .gnupg directory" )
34
34
return
35
35
end
@@ -49,7 +49,7 @@ def download_loot(paths)
49
49
if directory? ( target )
50
50
next
51
51
end
52
- print_status ( "Downloading #{ path } #{ sep } #{ file } -> #{ file } " )
52
+ print_status ( "Downloading #{ target } -> #{ file } " )
53
53
data = read_file ( target )
54
54
file = file . split ( sep ) . last
55
55
type = file . gsub ( /\. gpg.*/ , "" ) . gsub ( /gpg\. / , "" )
You can’t perform that action at this time.
0 commit comments