get-port: / characters are replaced internally.
parent
5ab14d4ee4
commit
60dc0917d4
|
@ -7,7 +7,7 @@ PORTS_CACHE_DIRECTORY = "#{CACHE_DIRECTORY}/ports/"
|
||||||
service = ARGV[0]
|
service = ARGV[0]
|
||||||
wanted_default_port = ARGV[1]?.try &.to_i
|
wanted_default_port = ARGV[1]?.try &.to_i
|
||||||
|
|
||||||
service_port_file = "#{PORTS_CACHE_DIRECTORY}/#{service}"
|
service_port_file = "#{PORTS_CACHE_DIRECTORY}/#{service.gsub /\//, ":"}"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if File.exists? service_port_file
|
if File.exists? service_port_file
|
||||||
|
|
Loading…
Reference in New Issue