File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Run chezmoi in a clean environment with Homebrew environment variables set up.
33set -eu
44
5- brew=" ${HOMEBREW_PREFIX:-/ opt/ homebrew} /bin/brew"
6-
7- env -i HOME=" $HOME " GITHUB_ACTIONS=" ${GITHUB_ACTIONS:- } " /bin/bash --noprofile --norc << EOF
8- eval "\$ (/usr/libexec/path_helper -s)"
9- eval "\$ ("$brew " shellenv)"
10- chezmoi "$@ "
5+ exec env -i \
6+ HOME=" $HOME " \
7+ HOMEBREW_PREFIX=" ${HOMEBREW_PREFIX:-/ opt/ homebrew} " \
8+ GITHUB_ACTIONS=" ${GITHUB_ACTIONS:- } " \
9+ /bin/bash --noprofile --norc -s " $@ " << 'EOF '
10+ eval "$(/usr/libexec/path_helper -s)"
11+ eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)"
12+ exec chezmoi "$@"
1113EOF
Original file line number Diff line number Diff line change 2626
2727echo " Installing and initializing chezmoi"
2828
29- env -i HOME=" $HOME " GITHUB_ACTIONS=" ${GITHUB_ACTIONS:- } " /bin/bash --noprofile --norc << EOF
30- eval "\$ (/usr/libexec/path_helper -s)"
31- eval "\$ ("$brew " shellenv)"
32- HOMEBREW_NO_AUTO_UPDATE=1 "$brew " install chezmoi
33- chezmoi init --verbose --apply $account
29+ env -i \
30+ HOME=" $HOME " \
31+ HOMEBREW_NO_AUTO_UPDATE=1 \
32+ HOMEBREW_PREFIX=" ${homebrew_dir} " \
33+ GITHUB_ACCOUNT=" $account " \
34+ GITHUB_ACTIONS=" ${GITHUB_ACTIONS:- } " \
35+ /bin/bash --noprofile --norc " $@ " << 'EOF '
36+ eval "$(/usr/libexec/path_helper -s)"
37+ eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)"
38+ "$HOMEBREW_PREFIX/bin/brew" install chezmoi
39+ chezmoi init --verbose --apply "$GITHUB_ACCOUNT"
3440EOF
You can’t perform that action at this time.
0 commit comments