lib/github/ldap/server.rb in github-ldap-1.0.3 vs lib/github/ldap/server.rb in github-ldap-1.0.4
- old
+ new
@@ -57,10 +57,10 @@
def self.server_tmp
tmp = ENV['TMPDIR'] || ENV['TEMPDIR']
if tmp.nil?
tmp = 'tmp'
- Dir.mkdir(tmp)
+ Dir.mkdir(tmp) unless File.directory?('tmp')
end
tmp
end
end