Expand tilde in resource file pathname
parent
9c8b619548
commit
3d6d55e087
|
@ -51,11 +51,12 @@ module Msf
|
||||||
end
|
end
|
||||||
|
|
||||||
args.each do |res|
|
args.each do |res|
|
||||||
|
res_expand = ::File.expand_path(res)
|
||||||
good_res = nil
|
good_res = nil
|
||||||
if res == '-'
|
if res == '-'
|
||||||
good_res = res
|
good_res = res
|
||||||
elsif ::File.exist?(res)
|
elsif ::File.exist?(res_expand)
|
||||||
good_res = res
|
good_res = res_expand
|
||||||
elsif
|
elsif
|
||||||
# let's check to see if it's in the scripts/resource dir (like when tab completed)
|
# let's check to see if it's in the scripts/resource dir (like when tab completed)
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue