don't write gitignore if one exists already
This commit is contained in:
@@ -47,12 +47,14 @@ module Zanzibar
|
||||
## Make sure the directory exists and that a .gitignore is there to ignore it
|
||||
if @settings['secret_dir']
|
||||
FileUtils.mkdir_p(@settings['secret_dir'])
|
||||
if !File.exist? "#{@settings['secret_dir']}/.gitignore"
|
||||
File.open("#{@settings['secret_dir']}/.gitignore", 'w') do |file|
|
||||
file.puts '*'
|
||||
file.puts '!.gitignore'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def resolved_file?
|
||||
File.exist? RESOLVED_NAME
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# The version of the gem
|
||||
module Zanzibar
|
||||
VERSION = '0.1.19'
|
||||
VERSION = '0.1.20'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user