Skip to content

Commit

Permalink
mariadb: fix ENV["CI"] usage.
Browse files Browse the repository at this point in the history
Part of #70493.
  • Loading branch information
MikeMcQuaid committed Feb 8, 2021
1 parent 4039115 commit 36a97a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/mariadb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ def install
end

def post_install
return if ENV["CI"]

# Make sure the var/mysql directory exists
(var/"mysql").mkpath

# Don't initialize database, it clashes when testing other MySQL-like implementations.
return if ENV["HOMEBREW_GITHUB_ACTIONS"]

unless File.exist? "#{var}/mysql/mysql/user.frm"
ENV["TMPDIR"] = nil
system "#{bin}/mysql_install_db", "--verbose", "--user=#{ENV["USER"]}",
Expand Down

0 comments on commit 36a97a1

Please sign in to comment.