Compare commits
2 Commits
6cdd744093
...
d4d03b0bb3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4d03b0bb3 | ||
|
|
ad7007a8ee |
@@ -106,8 +106,8 @@ function createBrewCallerScript() {
|
|||||||
local homebrewRepositoryPath="$(getHomebrewRepositoryPath)"
|
local homebrewRepositoryPath="$(getHomebrewRepositoryPath)"
|
||||||
local brewCallerPath="${homebrewRepositoryPath}/bin/brew-caller"
|
local brewCallerPath="${homebrewRepositoryPath}/bin/brew-caller"
|
||||||
local brewCallerSymlink="/usr/local/bin/brew"
|
local brewCallerSymlink="/usr/local/bin/brew"
|
||||||
[ -f "${brewCallerPath}" ] && rm "${brewCallerPath}"
|
[[ -f "${brewCallerPath}" ]] && rm "${brewCallerPath}"
|
||||||
[ -f "${brewCallerSymlink}" ] && rm "${brewCallerSymlink}"
|
[[ -f "${brewCallerSymlink}" || -h "${brewCallerSymlink}" ]] && rm "${brewCallerSymlink}"
|
||||||
cat <<- BREWCALLER | clang -x c -O2 -Wall -o "${brewCallerPath}" -
|
cat <<- BREWCALLER | clang -x c -O2 -Wall -o "${brewCallerPath}" -
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -158,6 +158,8 @@ function createBrewCallerScript() {
|
|||||||
"HOMEBREW_LOGS=${homebrew_log}",
|
"HOMEBREW_LOGS=${homebrew_log}",
|
||||||
format_env("HOME", "%s"),
|
format_env("HOME", "%s"),
|
||||||
format_env("HOMEBREW_CASK_OPTS", "--no-quarantine %s"),
|
format_env("HOMEBREW_CASK_OPTS", "--no-quarantine %s"),
|
||||||
|
"HOMEBREW_PREFIX=${homebrewRepositoryPath}",
|
||||||
|
"HOMEBREW_CELLAR=${homebrewRepositoryPath}/Cellar",
|
||||||
"HOMEBREW_NO_AUTO_UPDATE=1",
|
"HOMEBREW_NO_AUTO_UPDATE=1",
|
||||||
"HOMEBREW_NO_ANALYTICS=1",
|
"HOMEBREW_NO_ANALYTICS=1",
|
||||||
"HOMEBREW_NO_ANALYTICS_THIS_RUN=1",
|
"HOMEBREW_NO_ANALYTICS_THIS_RUN=1",
|
||||||
|
|||||||
Reference in New Issue
Block a user