From 467c806a8372ff0a52d929b0ac50bc9aaf1db98e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 8 Feb 2021 11:45:37 +0000 Subject: [PATCH] mariadb@10.1: fix ENV["CI"] usage. Part of https://github.com/Homebrew/homebrew-core/issues/70493. --- Formula/mariadb@10.1.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Formula/mariadb@10.1.rb b/Formula/mariadb@10.1.rb index ecefc295e400a..9e7116a8fc83d 100644 --- a/Formula/mariadb@10.1.rb +++ b/Formula/mariadb@10.1.rb @@ -111,10 +111,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"]}",