fastlane: fix export PATH

add '#{libexec}/bin' to PATH so fastlane sees its dependencies (such as xcprety) correctly.
remove typo '}'

Closes #49100.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
aerobounce 2020-01-17 10:51:46 +09:00 committed by Rui Chen
parent 832f3d0bd7
commit 7fedbf44b7

View file

@ -3,6 +3,7 @@ class Fastlane < Formula
homepage "https://fastlane.tools"
url "https://github.com/fastlane/fastlane/archive/2.140.0.tar.gz"
sha256 "06f6c3f348d1892d53ffc2055293b1d7fe0898c43e183811bce6055da8536be6"
revision 1
head "https://github.com/fastlane/fastlane.git"
bottle do
@ -23,7 +24,7 @@ class Fastlane < Formula
(bin/"fastlane").write <<~EOS
#!/bin/bash
export PATH="#{Formula["ruby@2.5"].opt_bin}:$PATH}"
export PATH="#{Formula["ruby@2.5"].opt_bin}:#{libexec}/bin:$PATH"
GEM_HOME="#{libexec}" GEM_PATH="#{libexec}" \\
exec "#{libexec}/bin/fastlane" "$@"
EOS