Add explicit mkpath to Pathname#write_env_script
This commit is contained in:
parent
5cbc5437f5
commit
c73baa39cb
@ -362,6 +362,7 @@ class Pathname
|
|||||||
def write_env_script target, env
|
def write_env_script target, env
|
||||||
env_export = ''
|
env_export = ''
|
||||||
env.each {|key, value| env_export += "#{key}=\"#{value}\" "}
|
env.each {|key, value| env_export += "#{key}=\"#{value}\" "}
|
||||||
|
dirname.mkpath
|
||||||
self.write <<-EOS.undent
|
self.write <<-EOS.undent
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#{env_export}exec "#{target}" "$@"
|
#{env_export}exec "#{target}" "$@"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user