From 3fa521627a8cba571bad41c4727b3c2ad5774424 Mon Sep 17 00:00:00 2001 From: seongwon bang Date: Mon, 14 Sep 2020 16:14:25 +0900 Subject: [PATCH 1/2] Use injected `XCODE_INSTALL_CACHE_DIR`variable if exist. --- lib/xcode/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xcode/install.rb b/lib/xcode/install.rb index 78f25bb..79d4272 100644 --- a/lib/xcode/install.rb +++ b/lib/xcode/install.rb @@ -14,7 +14,7 @@ require 'fastlane/actions/verify_xcode' module XcodeInstall - CACHE_DIR = Pathname.new("#{ENV['HOME']}/Library/Caches/XcodeInstall") + CACHE_DIR = ENV["XCODE_INSTALL_CACHE_DIR"] || Pathname.new("#{ENV['HOME']}/Library/Caches/XcodeInstall") class Curl COOKIES_PATH = Pathname.new('/tmp/curl-cookies.txt') From f0ced11e677fbb3dcdfe0751205c4039f8ba53df Mon Sep 17 00:00:00 2001 From: seongwon bang Date: Mon, 14 Sep 2020 16:56:27 +0900 Subject: [PATCH 2/2] Use single-quoted strings --- lib/xcode/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xcode/install.rb b/lib/xcode/install.rb index 79d4272..4a6522e 100644 --- a/lib/xcode/install.rb +++ b/lib/xcode/install.rb @@ -14,7 +14,7 @@ require 'fastlane/actions/verify_xcode' module XcodeInstall - CACHE_DIR = ENV["XCODE_INSTALL_CACHE_DIR"] || Pathname.new("#{ENV['HOME']}/Library/Caches/XcodeInstall") + CACHE_DIR = ENV['XCODE_INSTALL_CACHE_DIR'] || Pathname.new("#{ENV['HOME']}/Library/Caches/XcodeInstall") class Curl COOKIES_PATH = Pathname.new('/tmp/curl-cookies.txt')