docs: Requirements: add missing ssh for Arch Linux

I'm not sure why, but sometimes ssh is needed to install Homebrew.
The commands for other distros do install ssh.
Logs:
$ CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Warning: Running in non-interactive mode because `$CI` is set.
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
==> Found Git: /usr/sbin/git
==> Found cURL: /usr/sbin/curl
==> Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin
==> Downloading and installing Homebrew...
error: cannot run ssh: No such file or directory
fatal: unable to fork
Failed during: /usr/sbin/git fetch --force origin

Note: this happens in distrobox

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Can you run this with bash -xc to check which command specifically causes this?

Can you run this with bash -xc to check which command specifically causes this?

Sure. Here are the logs in two slightly different environments:

 Directly in a `distrobox create arch --image archlinux`:

$ CI=1 /bin/bash -cx "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+ set -u
+ '[' -z '5.1.16(1)-release' ']'
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ 0 -gt 0 ]]
+ [[ -t 1 ]]
++ tty_escape '4;39'
++ printf '\033[%sm' '4;39'
+ tty_underline=''
++ tty_mkbold 34
++ tty_escape '1;34'
++ printf '\033[%sm' '1;34'
+ tty_blue=''
++ tty_mkbold 31
++ tty_escape '1;31'
++ printf '\033[%sm' '1;31'
+ tty_red=''
++ tty_mkbold 39
++ tty_escape '1;39'
++ printf '\033[%sm' '1;39'
+ tty_bold=''
++ tty_escape 0
++ printf '\033[%sm' 0
+ tty_reset=''
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ warn 'Running in non-interactive mode because `$CI` is set.'
++ chomp 'Running in non-interactive mode because `$CI` is set.'
++ printf %s 'Running in non-interactive mode because `$CI` is set.'
+ printf 'Warning: %s\n' 'Running in non-interactive mode because `$CI` is set.'
Warning: Running in non-interactive mode because `$CI` is set.
+ NONINTERACTIVE=1
+ [[ -z dracula ]]
++ uname
+ OS=Linux
+ [[ Linux == \L\i\n\u\x ]]
+ HOMEBREW_ON_LINUX=1
+ [[ -n '' ]]
++ uname -m
+ UNAME_MACHINE=x86_64
+ HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
+ HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
+ HOMEBREW_CACHE=/var/home/dracula/.cache/Homebrew
+ STAT_PRINTF=("stat" "--printf")
+ PERMISSION_FORMAT=%a
+ CHOWN=("/bin/chown")
+ CHGRP=("/bin/chgrp")
++ id -gn
+ GROUP=dracula
+ TOUCH=("/bin/touch")
+ INSTALL=("/usr/bin/install" -d -o "${USER}" -g "${GROUP}" -m "0755")
+ CHMOD=("/bin/chmod")
+ MKDIR=("/bin/mkdir" "-p")
+ HOMEBREW_BREW_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ HOMEBREW_BREW_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ [[ https://github.com/Homebrew/brew == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w\.\g\i\t ]]
+ [[ https://github.com/Homebrew/homebrew-core == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e\.\g\i\t ]]
+ export HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE
+ MACOS_NEWEST_UNSUPPORTED=14.0
+ MACOS_OLDEST_SUPPORTED=11.0
+ REQUIRED_RUBY_VERSION=2.6
+ REQUIRED_GLIBC_VERSION=2.13
+ REQUIRED_CURL_VERSION=7.41.0
+ REQUIRED_GIT_VERSION=2.7.0
+ export HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ export HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ unset HAVE_SUDO_ACCESS
+ [[ -n 1 ]]
+ no_usable_ruby
++ find_tool ruby
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a ruby
+++ type -P -a ruby
+ [[ -z '' ]]
+ outdated_glibc
+ local glibc_version
++ ldd --version
++ head -n1
++ grep -o '^[0-9]\+\.[0-9]\+'
++ grep -o '[0-9.]*$'
+ glibc_version=2.37
+ version_lt 2.37 2.13
+ [[ 2 -lt 2 ]]
+ [[ 2 -eq 2 ]]
+ [[ 37 -lt 13 ]]
+ [[ -x /usr/bin/sudo ]]
+ /usr/bin/sudo -n -v
+ cd /usr
+ ohai 'Checking for `sudo` access (which may request your password)...'
++ shell_join 'Checking for `sudo` access (which may request your password)...'
++ local arg
++ printf %s 'Checking for `sudo` access (which may request your password)...'
++ shift
+ printf '==> %s\n' 'Checking for `sudo` access (which may request your password)...'
==> Checking for `sudo` access (which may request your password)...
+ [[ -n '' ]]
+ [[ -w /home/linuxbrew/.linuxbrew ]]
+ HOMEBREW_CORE=/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
+ check_run_command_as_root
+ [[ 1000 == \0 ]]
+ return
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ [[ ! -x /home/linuxbrew/.linuxbrew ]]
+ [[ -n '' ]]
+ [[ x86_64 == \a\a\r\c\h\6\4 ]]
+ [[ x86_64 != \x\8\6\_\6\4 ]]
+ [[ -n '' ]]
+ ohai 'This script will install:'
++ shell_join 'This script will install:'
++ local arg
++ printf %s 'This script will install:'
++ shift
+ printf '==> %s\n' 'This script will install:'
==> This script will install:
+ echo /home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/bin/brew
+ echo /home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
+ echo /home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
+ echo /home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
+ echo /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
+ echo /home/linuxbrew/.linuxbrew/Homebrew
/home/linuxbrew/.linuxbrew/Homebrew
+ directories=(bin etc include lib sbin share opt var Frameworks etc/bash_completion.d lib/pkgconfig share/aclocal share/doc share/info share/locale share/man share/man/man1 share/man/man2 share/man/man3 share/man/man4 share/man/man5 share/man/man6 share/man/man7 share/man/man8 var/log var/homebrew var/homebrew/linked bin/brew)
+ group_chmods=()
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin
+ [[ -e /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -r /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -w /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -x /home/linuxbrew/.linuxbrew/bin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc
+ [[ -e /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -r /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -w /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -x /home/linuxbrew/.linuxbrew/etc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/include
+ [[ -e /home/linuxbrew/.linuxbrew/include ]]
+ [[ -r /home/linuxbrew/.linuxbrew/include ]]
+ [[ -w /home/linuxbrew/.linuxbrew/include ]]
+ [[ -x /home/linuxbrew/.linuxbrew/include ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib
+ [[ -e /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -r /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -w /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -x /home/linuxbrew/.linuxbrew/lib ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/sbin
+ [[ -e /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -r /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -w /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -x /home/linuxbrew/.linuxbrew/sbin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share
+ [[ -e /home/linuxbrew/.linuxbrew/share ]]
+ [[ -r /home/linuxbrew/.linuxbrew/share ]]
+ [[ -w /home/linuxbrew/.linuxbrew/share ]]
+ [[ -x /home/linuxbrew/.linuxbrew/share ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/opt
+ [[ -e /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -r /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -w /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -x /home/linuxbrew/.linuxbrew/opt ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var
+ [[ -e /home/linuxbrew/.linuxbrew/var ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/Frameworks
+ [[ -e /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -r /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -w /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -x /home/linuxbrew/.linuxbrew/Frameworks ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc/bash_completion.d
+ [[ -e /home/linuxbrew/.linuxbrew/etc/bash_completion.d ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib/pkgconfig
+ [[ -e /home/linuxbrew/.linuxbrew/lib/pkgconfig ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/aclocal
+ [[ -e /home/linuxbrew/.linuxbrew/share/aclocal ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/doc
+ [[ -e /home/linuxbrew/.linuxbrew/share/doc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/info
+ [[ -e /home/linuxbrew/.linuxbrew/share/info ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/locale
+ [[ -e /home/linuxbrew/.linuxbrew/share/locale ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man
+ [[ -e /home/linuxbrew/.linuxbrew/share/man ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man1
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man1 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man2
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man2 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man3
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man3 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man4
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man4 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man5
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man5 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man6
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man6 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man7
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man7 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man8
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man8 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/log
+ [[ -e /home/linuxbrew/.linuxbrew/var/log ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew/linked
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin/brew
+ [[ -e /home/linuxbrew/.linuxbrew/bin/brew ]]
+ directories=(share/zsh share/zsh/site-functions)
+ zsh_dirs=()
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ directories=(bin etc include lib sbin share var opt share/zsh share/zsh/site-functions var/homebrew var/homebrew/linked Cellar Caskroom Frameworks)
+ mkdirs=()
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/bin ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/etc ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/include ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/lib ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/sbin ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/opt ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Cellar ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Caskroom ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Frameworks ]]
+ user_chmods=()
+ mkdirs_user_only=()
+ [[ 2 -gt 0 ]]
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ user_only_chmod /home/linuxbrew/.linuxbrew/share/zsh
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh ]]
++ get_permission /home/linuxbrew/.linuxbrew/share/zsh
++ stat --printf %a /home/linuxbrew/.linuxbrew/share/zsh
+ [[ 755 != 75[0145] ]]
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ user_only_chmod /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
++ get_permission /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ stat --printf %a /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ [[ 755 != 75[0145] ]]
+ chmods=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ chowns=()
+ chgrps=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ non_default_repos=
+ additional_shellenv_commands=()
+ [[ https://github.com/Homebrew/brew != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w ]]
+ [[ https://github.com/Homebrew/homebrew-core != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e ]]
+ [[ -n '' ]]
+ [[ -z 1 ]]
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ -d /home/linuxbrew/.linuxbrew/Homebrew ]]
+ execute_sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ args=('/bin/chown' '-R' 'dracula:dracula' '/home/linuxbrew/.linuxbrew/Homebrew')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ /usr/bin/sudo -n -l mkdir
+ HAVE_SUDO_ACCESS=0
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
++ shell_join /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chown
++ for arg in "$@"
++ printf ' '
++ printf %s -R
++ for arg in "$@"
++ printf ' '
++ printf %s dracula:dracula
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Homebrew
+ printf '==> %s\n' '/usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew'
==> /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ [[ -d /var/home/dracula/.cache/Homebrew ]]
+ exists_but_not_writable /var/home/dracula/.cache/Homebrew
+ [[ -e /var/home/dracula/.cache/Homebrew ]]
+ [[ -r /var/home/dracula/.cache/Homebrew ]]
+ [[ -w /var/home/dracula/.cache/Homebrew ]]
+ [[ -x /var/home/dracula/.cache/Homebrew ]]
+ file_not_owned /var/home/dracula/.cache/Homebrew
++ get_owner /var/home/dracula/.cache/Homebrew
++ stat --printf %u /var/home/dracula/.cache/Homebrew
++ id -u
+ [[ 1000 != \1\0\0\0 ]]
+ file_not_grpowned /var/home/dracula/.cache/Homebrew
++ id -G dracula
++ get_group /var/home/dracula/.cache/Homebrew
++ stat --printf %g /var/home/dracula/.cache/Homebrew
+ [[  1000 998  != *\ \1\0\0\0\ * ]]
+ [[ -d /var/home/dracula/.cache/Homebrew ]]
+ execute /bin/touch /var/home/dracula/.cache/Homebrew/.cleaned
+ /bin/touch /var/home/dracula/.cache/Homebrew/.cleaned
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ [[ -n '' ]]
+ USABLE_GIT=/usr/bin/git
+ [[ -n 1 ]]
++ find_tool git
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a git
+++ type -P -a git
++ [[ /usr/sbin/git != /* ]]
++ test_git /usr/sbin/git
++ [[ ! -x /usr/sbin/git ]]
++ local git_version_output
+++ /usr/sbin/git --version
++ git_version_output='git version 2.41.0'
++ [[ git version 2.41.0 =~ git version ([^ ]*).* ]]
+++ major_minor 2.41.0
++++ x=41.0
++++ echo 41
+++ echo 2.41
+++ major_minor 2.7.0
++++ x=7.0
++++ echo 7
+++ echo 2.7
++ version_ge 2.41 2.7
++ [[ 2 -gt 2 ]]
++ [[ 2 -eq 2 ]]
++ [[ 41 -ge 7 ]]
++ echo /usr/sbin/git
++ break
+ USABLE_GIT=/usr/sbin/git
++ command -v git
+ [[ -z /usr/sbin/git ]]
+ [[ -z /usr/sbin/git ]]
+ [[ /usr/sbin/git != /usr/bin/git ]]
+ export HOMEBREW_GIT_PATH=/usr/sbin/git
+ HOMEBREW_GIT_PATH=/usr/sbin/git
+ ohai 'Found Git: /usr/sbin/git'
++ shell_join 'Found Git: /usr/sbin/git'
++ local arg
++ printf %s 'Found Git: /usr/sbin/git'
++ shift
+ printf '==> %s\n' 'Found Git: /usr/sbin/git'
==> Found Git: /usr/sbin/git
+ command -v curl
+ [[ -n 1 ]]
++ find_tool curl
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a curl
+++ type -P -a curl
++ [[ /usr/sbin/curl != /* ]]
++ test_curl /usr/sbin/curl
++ [[ ! -x /usr/sbin/curl ]]
++ local curl_version_output curl_name_and_version
+++ /usr/sbin/curl --version
++ curl_version_output='curl 8.2.1 (x86_64-pc-linux-gnu) libcurl/8.2.1 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.55.1
Release-Date: 2023-07-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd'
++ curl_name_and_version='curl 8.2.1'
+++ major_minor 8.2.1
++++ x=2.1
++++ echo 2
+++ echo 8.2
+++ major_minor 7.41.0
++++ x=41.0
++++ echo 41
+++ echo 7.41
++ version_ge 8.2 7.41
++ [[ 8 -gt 7 ]]
++ echo /usr/sbin/curl
++ break
+ USABLE_CURL=/usr/sbin/curl
+ [[ -z /usr/sbin/curl ]]
+ [[ /usr/sbin/curl != /usr/bin/curl ]]
+ export HOMEBREW_CURL_PATH=/usr/sbin/curl
+ HOMEBREW_CURL_PATH=/usr/sbin/curl
+ ohai 'Found cURL: /usr/sbin/curl'
++ shell_join 'Found cURL: /usr/sbin/curl'
++ local arg
++ printf %s 'Found cURL: /usr/sbin/curl'
++ shift
+ printf '==> %s\n' 'Found cURL: /usr/sbin/curl'
==> Found cURL: /usr/sbin/curl
+ [[ -n 1 ]]
+ [[ -n /usr/sbin/curl ]]
+ ohai 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ shell_join 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ local arg
++ printf %s 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ shift
+ printf '==> %s\n' 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
==> Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin
+ export HOMEBREW_DEVELOPER=1
+ HOMEBREW_DEVELOPER=1
+ ohai 'Downloading and installing Homebrew...'
++ shell_join 'Downloading and installing Homebrew...'
++ local arg
++ printf %s 'Downloading and installing Homebrew...'
++ shift
+ printf '==> %s\n' 'Downloading and installing Homebrew...'
==> Downloading and installing Homebrew...
+ cd /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/sbin/git -c init.defaultBranch=master init --quiet
+ /usr/sbin/git -c init.defaultBranch=master init --quiet
+ execute /usr/sbin/git config remote.origin.url https://github.com/Homebrew/brew
+ /usr/sbin/git config remote.origin.url https://github.com/Homebrew/brew
+ execute /usr/sbin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ /usr/sbin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ execute /usr/sbin/git config --bool core.autocrlf false
+ /usr/sbin/git config --bool core.autocrlf false
+ execute /usr/sbin/git config --bool core.symlinks true
+ /usr/sbin/git config --bool core.symlinks true
+ execute /usr/sbin/git fetch --force origin
+ /usr/sbin/git fetch --force origin
error: cannot run ssh: No such file or directory
fatal: unable to fork
+++ shell_join /usr/sbin/git fetch --force origin
+++ local arg
+++ printf %s /usr/sbin/git
+++ shift
+++ for arg in "$@"
+++ printf ' '
+++ printf %s fetch
+++ for arg in "$@"
+++ printf ' '
+++ printf %s --force
+++ for arg in "$@"
+++ printf ' '
+++ printf %s origin
++ printf 'Failed during: %s' '/usr/sbin/git fetch --force origin'
+ abort 'Failed during: /usr/sbin/git fetch --force origin'
+ printf '%s\n' 'Failed during: /usr/sbin/git fetch --force origin'
Failed during: /usr/sbin/git fetch --force origin
+ exit 1
+ exit 1

 Manually adding a user in `podman run --rm -it archlinux`:

$ CI=1 /bin/bash -cx "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+ set -u
+ '[' -z '5.1.16(1)-release' ']'
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ 0 -gt 0 ]]
+ [[ -t 1 ]]
++ tty_escape '4;39'
++ printf '\033[%sm' '4;39'
+ tty_underline=''
++ tty_mkbold 34
++ tty_escape '1;34'
++ printf '\033[%sm' '1;34'
+ tty_blue=''
++ tty_mkbold 31
++ tty_escape '1;31'
++ printf '\033[%sm' '1;31'
+ tty_red=''
++ tty_mkbold 39
++ tty_escape '1;39'
++ printf '\033[%sm' '1;39'
+ tty_bold=''
++ tty_escape 0
++ printf '\033[%sm' 0
+ tty_reset=''
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ warn 'Running in non-interactive mode because `$CI` is set.'
++ chomp 'Running in non-interactive mode because `$CI` is set.'
++ printf %s 'Running in non-interactive mode because `$CI` is set.'
+ printf 'Warning: %s\n' 'Running in non-interactive mode because `$CI` is set.'
Warning: Running in non-interactive mode because `$CI` is set.
+ NONINTERACTIVE=1
+ [[ -z archlinux ]]
++ uname
+ OS=Linux
+ [[ Linux == \L\i\n\u\x ]]
+ HOMEBREW_ON_LINUX=1
+ [[ -n '' ]]
++ uname -m
+ UNAME_MACHINE=x86_64
+ HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
+ HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
+ HOMEBREW_CACHE=/home/archlinux/.cache/Homebrew
+ STAT_PRINTF=("stat" "--printf")
+ PERMISSION_FORMAT=%a
+ CHOWN=("/bin/chown")
+ CHGRP=("/bin/chgrp")
++ id -gn
+ GROUP=archlinux
+ TOUCH=("/bin/touch")
+ INSTALL=("/usr/bin/install" -d -o "${USER}" -g "${GROUP}" -m "0755")
+ CHMOD=("/bin/chmod")
+ MKDIR=("/bin/mkdir" "-p")
+ HOMEBREW_BREW_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ HOMEBREW_BREW_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ [[ https://github.com/Homebrew/brew == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w\.\g\i\t ]]
+ [[ https://github.com/Homebrew/homebrew-core == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e\.\g\i\t ]]
+ export HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE
+ MACOS_NEWEST_UNSUPPORTED=14.0
+ MACOS_OLDEST_SUPPORTED=11.0
+ REQUIRED_RUBY_VERSION=2.6
+ REQUIRED_GLIBC_VERSION=2.13
+ REQUIRED_CURL_VERSION=7.41.0
+ REQUIRED_GIT_VERSION=2.7.0
+ export HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ export HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ unset HAVE_SUDO_ACCESS
+ [[ -n 1 ]]
+ no_usable_ruby
++ find_tool ruby
++ [[ 1 -ne 1 ]]
++ local executable
+++ which -a ruby
++ read -r executable
+++ type -P -a ruby
+ [[ -z '' ]]
+ outdated_glibc
+ local glibc_version
++ ldd --version
++ head -n1
++ grep -o '[0-9.]*$'
++ grep -o '^[0-9]\+\.[0-9]\+'
+ glibc_version=2.37
+ version_lt 2.37 2.13
+ [[ 2 -lt 2 ]]
+ [[ 2 -eq 2 ]]
+ [[ 37 -lt 13 ]]
+ [[ -x /usr/bin/sudo ]]
+ /usr/bin/sudo -n -v
+ cd /usr
+ ohai 'Checking for `sudo` access (which may request your password)...'
++ shell_join 'Checking for `sudo` access (which may request your password)...'
++ local arg
++ printf %s 'Checking for `sudo` access (which may request your password)...'
++ shift
+ printf '==> %s\n' 'Checking for `sudo` access (which may request your password)...'
==> Checking for `sudo` access (which may request your password)...
+ [[ -n '' ]]
+ [[ -w /home/linuxbrew/.linuxbrew ]]
+ [[ -w /home/linuxbrew ]]
+ [[ -w /home ]]
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ /usr/bin/sudo -n -l mkdir
+ HAVE_SUDO_ACCESS=0
+ [[ -n '' ]]
+ return 0
+ HOMEBREW_CORE=/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
+ check_run_command_as_root
+ [[ 1000 == \0 ]]
+ return
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ [[ -n '' ]]
+ [[ x86_64 == \a\a\r\c\h\6\4 ]]
+ [[ x86_64 != \x\8\6\_\6\4 ]]
+ [[ -n '' ]]
+ ohai 'This script will install:'
++ shell_join 'This script will install:'
++ local arg
++ printf %s 'This script will install:'
++ shift
+ printf '==> %s\n' 'This script will install:'
==> This script will install:
+ echo /home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/bin/brew
+ echo /home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
+ echo /home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
+ echo /home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
+ echo /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
+ echo /home/linuxbrew/.linuxbrew/Homebrew
/home/linuxbrew/.linuxbrew/Homebrew
+ directories=(bin etc include lib sbin share opt var Frameworks etc/bash_completion.d lib/pkgconfig share/aclocal share/doc share/info share/locale share/man share/man/man1 share/man/man2 share/man/man3 share/man/man4 share/man/man5 share/man/man6 share/man/man7 share/man/man8 var/log var/homebrew var/homebrew/linked bin/brew)
+ group_chmods=()
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin
+ [[ -e /home/linuxbrew/.linuxbrew/bin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc
+ [[ -e /home/linuxbrew/.linuxbrew/etc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/include
+ [[ -e /home/linuxbrew/.linuxbrew/include ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib
+ [[ -e /home/linuxbrew/.linuxbrew/lib ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/sbin
+ [[ -e /home/linuxbrew/.linuxbrew/sbin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share
+ [[ -e /home/linuxbrew/.linuxbrew/share ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/opt
+ [[ -e /home/linuxbrew/.linuxbrew/opt ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var
+ [[ -e /home/linuxbrew/.linuxbrew/var ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/Frameworks
+ [[ -e /home/linuxbrew/.linuxbrew/Frameworks ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc/bash_completion.d
+ [[ -e /home/linuxbrew/.linuxbrew/etc/bash_completion.d ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib/pkgconfig
+ [[ -e /home/linuxbrew/.linuxbrew/lib/pkgconfig ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/aclocal
+ [[ -e /home/linuxbrew/.linuxbrew/share/aclocal ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/doc
+ [[ -e /home/linuxbrew/.linuxbrew/share/doc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/info
+ [[ -e /home/linuxbrew/.linuxbrew/share/info ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/locale
+ [[ -e /home/linuxbrew/.linuxbrew/share/locale ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man
+ [[ -e /home/linuxbrew/.linuxbrew/share/man ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man1
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man1 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man2
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man2 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man3
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man3 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man4
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man4 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man5
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man5 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man6
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man6 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man7
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man7 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man8
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man8 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/log
+ [[ -e /home/linuxbrew/.linuxbrew/var/log ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew/linked
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin/brew
+ [[ -e /home/linuxbrew/.linuxbrew/bin/brew ]]
+ directories=(share/zsh share/zsh/site-functions)
+ zsh_dirs=()
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ directories=(bin etc include lib sbin share var opt share/zsh share/zsh/site-functions var/homebrew var/homebrew/linked Cellar Caskroom Frameworks)
+ mkdirs=()
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/bin ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/etc ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/include ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/lib ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/sbin ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/opt ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Cellar ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Caskroom ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Frameworks ]]
+ mkdirs+=("${HOMEBREW_PREFIX}/${dir}")
+ user_chmods=()
+ mkdirs_user_only=()
+ [[ 2 -gt 0 ]]
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ mkdirs_user_only+=("${dir}")
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ mkdirs_user_only+=("${dir}")
+ chmods=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ chowns=()
+ chgrps=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 15 -gt 0 ]]
+ ohai 'The following new directories will be created:'
++ shell_join 'The following new directories will be created:'
++ local arg
++ printf %s 'The following new directories will be created:'
++ shift
+ printf '==> %s\n' 'The following new directories will be created:'
==> The following new directories will be created:
+ printf '%s\n' /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var/homebrew
/home/linuxbrew/.linuxbrew/var/homebrew/linked
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Caskroom
/home/linuxbrew/.linuxbrew/Frameworks
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ non_default_repos=
+ additional_shellenv_commands=()
+ [[ https://github.com/Homebrew/brew != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w ]]
+ [[ https://github.com/Homebrew/homebrew-core != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e ]]
+ [[ -n '' ]]
+ [[ -z 1 ]]
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ execute_sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
+ args=('/usr/bin/install' '-d' '-o' 'archlinux' '-g' 'archlinux' '-m' '0755' '/home/linuxbrew/.linuxbrew')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
++ shell_join /usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /usr/bin/install
++ for arg in "$@"
++ printf ' '
++ printf %s -d
++ for arg in "$@"
++ printf ' '
++ printf %s -o
++ for arg in "$@"
++ printf ' '
++ printf %s archlinux
++ for arg in "$@"
++ printf ' '
++ printf %s -g
++ for arg in "$@"
++ printf ' '
++ printf %s archlinux
++ for arg in "$@"
++ printf ' '
++ printf %s -m
++ for arg in "$@"
++ printf ' '
++ printf %s 0755
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew
+ printf '==> %s\n' '/usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew'
==> /usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
+ execute /usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
+ /usr/bin/sudo /usr/bin/install -d -o archlinux -g archlinux -m 0755 /home/linuxbrew/.linuxbrew
+ [[ 15 -gt 0 ]]
+ execute_sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ args=('/bin/mkdir' '-p' '/home/linuxbrew/.linuxbrew/bin' '/home/linuxbrew/.linuxbrew/etc' '/home/linuxbrew/.linuxbrew/include' '/home/linuxbrew/.linuxbrew/lib' '/home/linuxbrew/.linuxbrew/sbin' '/home/linuxbrew/.linuxbrew/share' '/home/linuxbrew/.linuxbrew/var' '/home/linuxbrew/.linuxbrew/opt' '/home/linuxbrew/.linuxbrew/share/zsh' '/home/linuxbrew/.linuxbrew/share/zsh/site-functions' '/home/linuxbrew/.linuxbrew/var/homebrew' '/home/linuxbrew/.linuxbrew/var/homebrew/linked' '/home/linuxbrew/.linuxbrew/Cellar' '/home/linuxbrew/.linuxbrew/Caskroom' '/home/linuxbrew/.linuxbrew/Frameworks')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ shell_join /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/mkdir
++ for arg in "$@"
++ printf ' '
++ printf %s -p
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/bin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/etc
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/include
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/lib
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/sbin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/opt
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew/linked
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Cellar
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Caskroom
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Frameworks
+ printf '==> %s\n' '/usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks'
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute_sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ args=('/bin/chmod' 'ug=rwx' '/home/linuxbrew/.linuxbrew/bin' '/home/linuxbrew/.linuxbrew/etc' '/home/linuxbrew/.linuxbrew/include' '/home/linuxbrew/.linuxbrew/lib' '/home/linuxbrew/.linuxbrew/sbin' '/home/linuxbrew/.linuxbrew/share' '/home/linuxbrew/.linuxbrew/var' '/home/linuxbrew/.linuxbrew/opt' '/home/linuxbrew/.linuxbrew/share/zsh' '/home/linuxbrew/.linuxbrew/share/zsh/site-functions' '/home/linuxbrew/.linuxbrew/var/homebrew' '/home/linuxbrew/.linuxbrew/var/homebrew/linked' '/home/linuxbrew/.linuxbrew/Cellar' '/home/linuxbrew/.linuxbrew/Caskroom' '/home/linuxbrew/.linuxbrew/Frameworks')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ shell_join /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chmod
++ for arg in "$@"
++ printf ' '
++ printf %s ug=rwx
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/bin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/etc
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/include
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/lib
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/sbin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/opt
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew/linked
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Cellar
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Caskroom
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Frameworks
+ printf '==> %s\n' '/usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks'
==> /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ [[ 2 -gt 0 ]]
+ execute_sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ args=('/bin/chmod' 'go-w' '/home/linuxbrew/.linuxbrew/share/zsh' '/home/linuxbrew/.linuxbrew/share/zsh/site-functions')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ shell_join /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chmod
++ for arg in "$@"
++ printf ' '
++ printf %s go-w
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ printf '==> %s\n' '/usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions'
==> /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ execute /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ execute_sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ args=('/bin/chown' 'archlinux' '/home/linuxbrew/.linuxbrew/bin' '/home/linuxbrew/.linuxbrew/etc' '/home/linuxbrew/.linuxbrew/include' '/home/linuxbrew/.linuxbrew/lib' '/home/linuxbrew/.linuxbrew/sbin' '/home/linuxbrew/.linuxbrew/share' '/home/linuxbrew/.linuxbrew/var' '/home/linuxbrew/.linuxbrew/opt' '/home/linuxbrew/.linuxbrew/share/zsh' '/home/linuxbrew/.linuxbrew/share/zsh/site-functions' '/home/linuxbrew/.linuxbrew/var/homebrew' '/home/linuxbrew/.linuxbrew/var/homebrew/linked' '/home/linuxbrew/.linuxbrew/Cellar' '/home/linuxbrew/.linuxbrew/Caskroom' '/home/linuxbrew/.linuxbrew/Frameworks')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ shell_join /usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chown
++ for arg in "$@"
++ printf ' '
++ printf %s archlinux
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/bin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/etc
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/include
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/lib
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/sbin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/opt
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew/linked
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Cellar
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Caskroom
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Frameworks
+ printf '==> %s\n' '/usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks'
==> /usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute /usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ /usr/bin/sudo /bin/chown archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute_sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ args=('/bin/chgrp' 'archlinux' '/home/linuxbrew/.linuxbrew/bin' '/home/linuxbrew/.linuxbrew/etc' '/home/linuxbrew/.linuxbrew/include' '/home/linuxbrew/.linuxbrew/lib' '/home/linuxbrew/.linuxbrew/sbin' '/home/linuxbrew/.linuxbrew/share' '/home/linuxbrew/.linuxbrew/var' '/home/linuxbrew/.linuxbrew/opt' '/home/linuxbrew/.linuxbrew/share/zsh' '/home/linuxbrew/.linuxbrew/share/zsh/site-functions' '/home/linuxbrew/.linuxbrew/var/homebrew' '/home/linuxbrew/.linuxbrew/var/homebrew/linked' '/home/linuxbrew/.linuxbrew/Cellar' '/home/linuxbrew/.linuxbrew/Caskroom' '/home/linuxbrew/.linuxbrew/Frameworks')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ shell_join /usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chgrp
++ for arg in "$@"
++ printf ' '
++ printf %s archlinux
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/bin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/etc
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/include
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/lib
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/sbin
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/opt
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/var/homebrew/linked
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Cellar
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Caskroom
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Frameworks
+ printf '==> %s\n' '/usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks'
==> /usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ execute /usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ /usr/bin/sudo /bin/chgrp archlinux /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
+ [[ -d /home/linuxbrew/.linuxbrew/Homebrew ]]
+ execute_sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
+ args=('/bin/mkdir' '-p' '/home/linuxbrew/.linuxbrew/Homebrew')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
++ shell_join /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/mkdir
++ for arg in "$@"
++ printf ' '
++ printf %s -p
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Homebrew
+ printf '==> %s\n' '/usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew'
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
+ /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
+ execute_sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
+ args=('/bin/chown' '-R' 'archlinux:archlinux' '/home/linuxbrew/.linuxbrew/Homebrew')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z 0 ]]
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
++ shell_join /usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chown
++ for arg in "$@"
++ printf ' '
++ printf %s -R
++ for arg in "$@"
++ printf ' '
++ printf %s archlinux:archlinux
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Homebrew
+ printf '==> %s\n' '/usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew'
==> /usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
+ /usr/bin/sudo /bin/chown -R archlinux:archlinux /home/linuxbrew/.linuxbrew/Homebrew
+ [[ -d /home/archlinux/.cache/Homebrew ]]
+ [[ -n '' ]]
+ execute /bin/mkdir -p /home/archlinux/.cache/Homebrew
+ /bin/mkdir -p /home/archlinux/.cache/Homebrew
+ exists_but_not_writable /home/archlinux/.cache/Homebrew
+ [[ -e /home/archlinux/.cache/Homebrew ]]
+ [[ -r /home/archlinux/.cache/Homebrew ]]
+ [[ -w /home/archlinux/.cache/Homebrew ]]
+ [[ -x /home/archlinux/.cache/Homebrew ]]
+ file_not_owned /home/archlinux/.cache/Homebrew
++ get_owner /home/archlinux/.cache/Homebrew
++ stat --printf %u /home/archlinux/.cache/Homebrew
++ id -u
+ [[ 1000 != \1\0\0\0 ]]
+ file_not_grpowned /home/archlinux/.cache/Homebrew
++ id -G archlinux
++ get_group /home/archlinux/.cache/Homebrew
++ stat --printf %g /home/archlinux/.cache/Homebrew
+ [[  1000 998  != *\ \1\0\0\0\ * ]]
+ [[ -d /home/archlinux/.cache/Homebrew ]]
+ execute /bin/touch /home/archlinux/.cache/Homebrew/.cleaned
+ /bin/touch /home/archlinux/.cache/Homebrew/.cleaned
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ [[ -n '' ]]
+ USABLE_GIT=/usr/bin/git
+ [[ -n 1 ]]
++ find_tool git
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a git
+++ type -P -a git
++ [[ /usr/sbin/git != /* ]]
++ test_git /usr/sbin/git
++ [[ ! -x /usr/sbin/git ]]
++ local git_version_output
+++ /usr/sbin/git --version
++ git_version_output='git version 2.41.0'
++ [[ git version 2.41.0 =~ git version ([^ ]*).* ]]
+++ major_minor 2.41.0
++++ x=41.0
++++ echo 41
+++ echo 2.41
+++ major_minor 2.7.0
++++ x=7.0
++++ echo 7
+++ echo 2.7
++ version_ge 2.41 2.7
++ [[ 2 -gt 2 ]]
++ [[ 2 -eq 2 ]]
++ [[ 41 -ge 7 ]]
++ echo /usr/sbin/git
++ break
+ USABLE_GIT=/usr/sbin/git
++ command -v git
+ [[ -z /usr/sbin/git ]]
+ [[ -z /usr/sbin/git ]]
+ [[ /usr/sbin/git != /usr/bin/git ]]
+ export HOMEBREW_GIT_PATH=/usr/sbin/git
+ HOMEBREW_GIT_PATH=/usr/sbin/git
+ ohai 'Found Git: /usr/sbin/git'
++ shell_join 'Found Git: /usr/sbin/git'
++ local arg
++ printf %s 'Found Git: /usr/sbin/git'
++ shift
+ printf '==> %s\n' 'Found Git: /usr/sbin/git'
==> Found Git: /usr/sbin/git
+ command -v curl
+ [[ -n 1 ]]
++ find_tool curl
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a curl
+++ type -P -a curl
++ [[ /usr/sbin/curl != /* ]]
++ test_curl /usr/sbin/curl
++ [[ ! -x /usr/sbin/curl ]]
++ local curl_version_output curl_name_and_version
+++ /usr/sbin/curl --version
++ curl_version_output='curl 8.2.1 (x86_64-pc-linux-gnu) libcurl/8.2.1 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.55.1
Release-Date: 2023-07-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd'
++ curl_name_and_version='curl 8.2.1'
+++ major_minor 8.2.1
++++ x=2.1
++++ echo 2
+++ echo 8.2
+++ major_minor 7.41.0
++++ x=41.0
++++ echo 41
+++ echo 7.41
++ version_ge 8.2 7.41
++ [[ 8 -gt 7 ]]
++ echo /usr/sbin/curl
++ break
+ USABLE_CURL=/usr/sbin/curl
+ [[ -z /usr/sbin/curl ]]
+ [[ /usr/sbin/curl != /usr/bin/curl ]]
+ export HOMEBREW_CURL_PATH=/usr/sbin/curl
+ HOMEBREW_CURL_PATH=/usr/sbin/curl
+ ohai 'Found cURL: /usr/sbin/curl'
++ shell_join 'Found cURL: /usr/sbin/curl'
++ local arg
++ printf %s 'Found cURL: /usr/sbin/curl'
++ shift
+ printf '==> %s\n' 'Found cURL: /usr/sbin/curl'
==> Found cURL: /usr/sbin/curl
+ [[ -n 1 ]]
+ [[ -n /usr/sbin/curl ]]
+ ohai 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ shell_join 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ local arg
++ printf %s 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
++ shift
+ printf '==> %s\n' 'Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin'
==> Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin
+ export HOMEBREW_DEVELOPER=1
+ HOMEBREW_DEVELOPER=1
+ ohai 'Downloading and installing Homebrew...'
++ shell_join 'Downloading and installing Homebrew...'
++ local arg
++ printf %s 'Downloading and installing Homebrew...'
++ shift
+ printf '==> %s\n' 'Downloading and installing Homebrew...'
==> Downloading and installing Homebrew...
+ cd /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/sbin/git -c init.defaultBranch=master init --quiet
+ /usr/sbin/git -c init.defaultBranch=master init --quiet
+ execute /usr/sbin/git config remote.origin.url https://github.com/Homebrew/brew
+ /usr/sbin/git config remote.origin.url https://github.com/Homebrew/brew
+ execute /usr/sbin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ /usr/sbin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ execute /usr/sbin/git config --bool core.autocrlf false
+ /usr/sbin/git config --bool core.autocrlf false
+ execute /usr/sbin/git config --bool core.symlinks true
+ /usr/sbin/git config --bool core.symlinks true
+ execute /usr/sbin/git fetch --force origin
+ /usr/sbin/git fetch --force origin
remote: Enumerating objects: 245202, done.
remote: Counting objects: 100% (1456/1456), done.
remote: Compressing objects: 100% (849/849), done.
remote: Total 245202 (delta 716), reused 1272 (delta 569), pack-reused 243746
Receiving objects: 100% (245202/245202), 71.64 MiB | 8.92 MiB/s, done.
Resolving deltas: 100% (179136/179136), done.
From https://github.com/Homebrew/brew
 * [new branch]          master     -> origin/master
 * [new tag]             0.1        -> 0.1
 * [new tag]             0.2        -> 0.2
 * [new tag]             0.3        -> 0.3
 * [new tag]             0.4        -> 0.4
 * [new tag]             0.5        -> 0.5
 * [new tag]             0.6        -> 0.6
 * [new tag]             0.7        -> 0.7
 * [new tag]             0.7.1      -> 0.7.1
 * [new tag]             0.8        -> 0.8
 * [new tag]             0.8.1      -> 0.8.1
 * [new tag]             0.9        -> 0.9
 * [new tag]             0.9.1      -> 0.9.1
 * [new tag]             0.9.2      -> 0.9.2
 * [new tag]             0.9.3      -> 0.9.3
 * [new tag]             0.9.4      -> 0.9.4
 * [new tag]             0.9.5      -> 0.9.5
 * [new tag]             0.9.8      -> 0.9.8
 * [new tag]             0.9.9      -> 0.9.9
 * [new tag]             1.0.0      -> 1.0.0
 * [new tag]             1.0.1      -> 1.0.1
 * [new tag]             1.0.2      -> 1.0.2
 * [new tag]             1.0.3      -> 1.0.3
 * [new tag]             1.0.4      -> 1.0.4
 * [new tag]             1.0.5      -> 1.0.5
 * [new tag]             1.0.6      -> 1.0.6
 * [new tag]             1.0.7      -> 1.0.7
 * [new tag]             1.0.8      -> 1.0.8
 * [new tag]             1.0.9      -> 1.0.9
 * [new tag]             1.1.0      -> 1.1.0
 * [new tag]             1.1.1      -> 1.1.1
 * [new tag]             1.1.10     -> 1.1.10
 * [new tag]             1.1.11     -> 1.1.11
 * [new tag]             1.1.12     -> 1.1.12
 * [new tag]             1.1.13     -> 1.1.13
 * [new tag]             1.1.2      -> 1.1.2
 * [new tag]             1.1.3      -> 1.1.3
 * [new tag]             1.1.4      -> 1.1.4
 * [new tag]             1.1.5      -> 1.1.5
 * [new tag]             1.1.6      -> 1.1.6
 * [new tag]             1.1.7      -> 1.1.7
 * [new tag]             1.1.8      -> 1.1.8
 * [new tag]             1.1.9      -> 1.1.9
 * [new tag]             1.2.0      -> 1.2.0
 * [new tag]             1.2.1      -> 1.2.1
 * [new tag]             1.2.2      -> 1.2.2
 * [new tag]             1.2.3      -> 1.2.3
 * [new tag]             1.2.4      -> 1.2.4
 * [new tag]             1.2.5      -> 1.2.5
 * [new tag]             1.2.6      -> 1.2.6
 * [new tag]             1.3.0      -> 1.3.0
 * [new tag]             1.3.1      -> 1.3.1
 * [new tag]             1.3.2      -> 1.3.2
 * [new tag]             1.3.3      -> 1.3.3
 * [new tag]             1.3.4      -> 1.3.4
 * [new tag]             1.3.5      -> 1.3.5
 * [new tag]             1.3.6      -> 1.3.6
 * [new tag]             1.3.7      -> 1.3.7
 * [new tag]             1.3.8      -> 1.3.8
 * [new tag]             1.3.9      -> 1.3.9
 * [new tag]             1.4.0      -> 1.4.0
 * [new tag]             1.4.1      -> 1.4.1
 * [new tag]             1.4.2      -> 1.4.2
 * [new tag]             1.4.3      -> 1.4.3
 * [new tag]             1.5.0      -> 1.5.0
 * [new tag]             1.5.1      -> 1.5.1
 * [new tag]             1.5.10     -> 1.5.10
 * [new tag]             1.5.11     -> 1.5.11
 * [new tag]             1.5.12     -> 1.5.12
 * [new tag]             1.5.13     -> 1.5.13
 * [new tag]             1.5.14     -> 1.5.14
 * [new tag]             1.5.2      -> 1.5.2
 * [new tag]             1.5.3      -> 1.5.3
 * [new tag]             1.5.4      -> 1.5.4
 * [new tag]             1.5.5      -> 1.5.5
 * [new tag]             1.5.6      -> 1.5.6
 * [new tag]             1.5.7      -> 1.5.7
 * [new tag]             1.5.8      -> 1.5.8
 * [new tag]             1.5.9      -> 1.5.9
 * [new tag]             1.6.0      -> 1.6.0
 * [new tag]             1.6.1      -> 1.6.1
 * [new tag]             1.6.10     -> 1.6.10
 * [new tag]             1.6.11     -> 1.6.11
 * [new tag]             1.6.12     -> 1.6.12
 * [new tag]             1.6.13     -> 1.6.13
 * [new tag]             1.6.14     -> 1.6.14
 * [new tag]             1.6.15     -> 1.6.15
 * [new tag]             1.6.16     -> 1.6.16
 * [new tag]             1.6.17     -> 1.6.17
 * [new tag]             1.6.2      -> 1.6.2
 * [new tag]             1.6.3      -> 1.6.3
 * [new tag]             1.6.4      -> 1.6.4
 * [new tag]             1.6.5      -> 1.6.5
 * [new tag]             1.6.6      -> 1.6.6
 * [new tag]             1.6.7      -> 1.6.7
 * [new tag]             1.6.8      -> 1.6.8
 * [new tag]             1.6.9      -> 1.6.9
 * [new tag]             1.7.0      -> 1.7.0
 * [new tag]             1.7.1      -> 1.7.1
 * [new tag]             1.7.2      -> 1.7.2
 * [new tag]             1.7.3      -> 1.7.3
 * [new tag]             1.7.4      -> 1.7.4
 * [new tag]             1.7.5      -> 1.7.5
 * [new tag]             1.7.6      -> 1.7.6
 * [new tag]             1.7.7      -> 1.7.7
 * [new tag]             1.8.0      -> 1.8.0
 * [new tag]             1.8.1      -> 1.8.1
 * [new tag]             1.8.2      -> 1.8.2
 * [new tag]             1.8.3      -> 1.8.3
 * [new tag]             1.8.4      -> 1.8.4
 * [new tag]             1.8.5      -> 1.8.5
 * [new tag]             1.8.6      -> 1.8.6
 * [new tag]             1.9.0      -> 1.9.0
 * [new tag]             1.9.1      -> 1.9.1
 * [new tag]             1.9.2      -> 1.9.2
 * [new tag]             1.9.3      -> 1.9.3
 * [new tag]             2.0.0      -> 2.0.0
 * [new tag]             2.0.1      -> 2.0.1
 * [new tag]             2.0.2      -> 2.0.2
 * [new tag]             2.0.3      -> 2.0.3
 * [new tag]             2.0.4      -> 2.0.4
 * [new tag]             2.0.5      -> 2.0.5
 * [new tag]             2.0.6      -> 2.0.6
 * [new tag]             2.1.0      -> 2.1.0
 * [new tag]             2.1.1      -> 2.1.1
 * [new tag]             2.1.10     -> 2.1.10
 * [new tag]             2.1.11     -> 2.1.11
 * [new tag]             2.1.12     -> 2.1.12
 * [new tag]             2.1.13     -> 2.1.13
 * [new tag]             2.1.14     -> 2.1.14
 * [new tag]             2.1.15     -> 2.1.15
 * [new tag]             2.1.16     -> 2.1.16
 * [new tag]             2.1.2      -> 2.1.2
 * [new tag]             2.1.3      -> 2.1.3
 * [new tag]             2.1.4      -> 2.1.4
 * [new tag]             2.1.5      -> 2.1.5
 * [new tag]             2.1.6      -> 2.1.6
 * [new tag]             2.1.7      -> 2.1.7
 * [new tag]             2.1.8      -> 2.1.8
 * [new tag]             2.1.9      -> 2.1.9
 * [new tag]             2.2.0      -> 2.2.0
 * [new tag]             2.2.1      -> 2.2.1
 * [new tag]             2.2.10     -> 2.2.10
 * [new tag]             2.2.11     -> 2.2.11
 * [new tag]             2.2.12     -> 2.2.12
 * [new tag]             2.2.13     -> 2.2.13
 * [new tag]             2.2.14     -> 2.2.14
 * [new tag]             2.2.15     -> 2.2.15
 * [new tag]             2.2.16     -> 2.2.16
 * [new tag]             2.2.17     -> 2.2.17
 * [new tag]             2.2.2      -> 2.2.2
 * [new tag]             2.2.3      -> 2.2.3
 * [new tag]             2.2.4      -> 2.2.4
 * [new tag]             2.2.5      -> 2.2.5
 * [new tag]             2.2.6      -> 2.2.6
 * [new tag]             2.2.7      -> 2.2.7
 * [new tag]             2.2.8      -> 2.2.8
 * [new tag]             2.2.9      -> 2.2.9
 * [new tag]             2.3.0      -> 2.3.0
 * [new tag]             2.4.0      -> 2.4.0
 * [new tag]             2.4.1      -> 2.4.1
 * [new tag]             2.4.10     -> 2.4.10
 * [new tag]             2.4.11     -> 2.4.11
 * [new tag]             2.4.12     -> 2.4.12
 * [new tag]             2.4.13     -> 2.4.13
 * [new tag]             2.4.14     -> 2.4.14
 * [new tag]             2.4.15     -> 2.4.15
 * [new tag]             2.4.16     -> 2.4.16
 * [new tag]             2.4.2      -> 2.4.2
 * [new tag]             2.4.3      -> 2.4.3
 * [new tag]             2.4.4      -> 2.4.4
 * [new tag]             2.4.5      -> 2.4.5
 * [new tag]             2.4.6      -> 2.4.6
 * [new tag]             2.4.7      -> 2.4.7
 * [new tag]             2.4.8      -> 2.4.8
 * [new tag]             2.4.9      -> 2.4.9
 * [new tag]             2.5.0      -> 2.5.0
 * [new tag]             2.5.1      -> 2.5.1
 * [new tag]             2.5.10     -> 2.5.10
 * [new tag]             2.5.11     -> 2.5.11
 * [new tag]             2.5.12     -> 2.5.12
 * [new tag]             2.5.2      -> 2.5.2
 * [new tag]             2.5.3      -> 2.5.3
 * [new tag]             2.5.4      -> 2.5.4
 * [new tag]             2.5.5      -> 2.5.5
 * [new tag]             2.5.6      -> 2.5.6
 * [new tag]             2.5.7      -> 2.5.7
 * [new tag]             2.5.8      -> 2.5.8
 * [new tag]             2.5.9      -> 2.5.9
 * [new tag]             2.6.0      -> 2.6.0
 * [new tag]             2.6.1      -> 2.6.1
 * [new tag]             2.6.2      -> 2.6.2
 * [new tag]             2.7.0      -> 2.7.0
 * [new tag]             2.7.1      -> 2.7.1
 * [new tag]             2.7.2      -> 2.7.2
 * [new tag]             2.7.3      -> 2.7.3
 * [new tag]             2.7.4      -> 2.7.4
 * [new tag]             2.7.5      -> 2.7.5
 * [new tag]             2.7.6      -> 2.7.6
 * [new tag]             2.7.7      -> 2.7.7
 * [new tag]             3.0.0      -> 3.0.0
 * [new tag]             3.0.1      -> 3.0.1
 * [new tag]             3.0.10     -> 3.0.10
 * [new tag]             3.0.11     -> 3.0.11
 * [new tag]             3.0.2      -> 3.0.2
 * [new tag]             3.0.3      -> 3.0.3
 * [new tag]             3.0.4      -> 3.0.4
 * [new tag]             3.0.5      -> 3.0.5
 * [new tag]             3.0.6      -> 3.0.6
 * [new tag]             3.0.7      -> 3.0.7
 * [new tag]             3.0.8      -> 3.0.8
 * [new tag]             3.0.9      -> 3.0.9
 * [new tag]             3.1.0      -> 3.1.0
 * [new tag]             3.1.1      -> 3.1.1
 * [new tag]             3.1.10     -> 3.1.10
 * [new tag]             3.1.11     -> 3.1.11
 * [new tag]             3.1.12     -> 3.1.12
 * [new tag]             3.1.2      -> 3.1.2
 * [new tag]             3.1.3      -> 3.1.3
 * [new tag]             3.1.4      -> 3.1.4
 * [new tag]             3.1.5      -> 3.1.5
 * [new tag]             3.1.6      -> 3.1.6
 * [new tag]             3.1.7      -> 3.1.7
 * [new tag]             3.1.8      -> 3.1.8
 * [new tag]             3.1.9      -> 3.1.9
 * [new tag]             3.2.0      -> 3.2.0
 * [new tag]             3.2.1      -> 3.2.1
 * [new tag]             3.2.10     -> 3.2.10
 * [new tag]             3.2.11     -> 3.2.11
 * [new tag]             3.2.12     -> 3.2.12
 * [new tag]             3.2.13     -> 3.2.13
 * [new tag]             3.2.14     -> 3.2.14
 * [new tag]             3.2.15     -> 3.2.15
 * [new tag]             3.2.16     -> 3.2.16
 * [new tag]             3.2.17     -> 3.2.17
 * [new tag]             3.2.2      -> 3.2.2
 * [new tag]             3.2.3      -> 3.2.3
 * [new tag]             3.2.4      -> 3.2.4
 * [new tag]             3.2.5      -> 3.2.5
 * [new tag]             3.2.6      -> 3.2.6
 * [new tag]             3.2.7      -> 3.2.7
 * [new tag]             3.2.8      -> 3.2.8
 * [new tag]             3.2.9      -> 3.2.9
 * [new tag]             3.3.0      -> 3.3.0
 * [new tag]             3.3.1      -> 3.3.1
 * [new tag]             3.3.10     -> 3.3.10
 * [new tag]             3.3.11     -> 3.3.11
 * [new tag]             3.3.12     -> 3.3.12
 * [new tag]             3.3.13     -> 3.3.13
 * [new tag]             3.3.14     -> 3.3.14
 * [new tag]             3.3.15     -> 3.3.15
 * [new tag]             3.3.16     -> 3.3.16
 * [new tag]             3.3.2      -> 3.3.2
 * [new tag]             3.3.3      -> 3.3.3
 * [new tag]             3.3.4      -> 3.3.4
 * [new tag]             3.3.5      -> 3.3.5
 * [new tag]             3.3.6      -> 3.3.6
 * [new tag]             3.3.7      -> 3.3.7
 * [new tag]             3.3.8      -> 3.3.8
 * [new tag]             3.3.9      -> 3.3.9
 * [new tag]             3.4.0      -> 3.4.0
 * [new tag]             3.4.1      -> 3.4.1
 * [new tag]             3.4.10     -> 3.4.10
 * [new tag]             3.4.11     -> 3.4.11
 * [new tag]             3.4.2      -> 3.4.2
 * [new tag]             3.4.3      -> 3.4.3
 * [new tag]             3.4.4      -> 3.4.4
 * [new tag]             3.4.5      -> 3.4.5
 * [new tag]             3.4.6      -> 3.4.6
 * [new tag]             3.4.7      -> 3.4.7
 * [new tag]             3.4.8      -> 3.4.8
 * [new tag]             3.4.9      -> 3.4.9
 * [new tag]             3.5.0      -> 3.5.0
 * [new tag]             3.5.1      -> 3.5.1
 * [new tag]             3.5.10     -> 3.5.10
 * [new tag]             3.5.2      -> 3.5.2
 * [new tag]             3.5.3      -> 3.5.3
 * [new tag]             3.5.4      -> 3.5.4
 * [new tag]             3.5.5      -> 3.5.5
 * [new tag]             3.5.6      -> 3.5.6
 * [new tag]             3.5.7      -> 3.5.7
 * [new tag]             3.5.8      -> 3.5.8
 * [new tag]             3.5.9      -> 3.5.9
 * [new tag]             3.6.0      -> 3.6.0
 * [new tag]             3.6.1      -> 3.6.1
 * [new tag]             3.6.10     -> 3.6.10
 * [new tag]             3.6.11     -> 3.6.11
 * [new tag]             3.6.12     -> 3.6.12
 * [new tag]             3.6.13     -> 3.6.13
 * [new tag]             3.6.14     -> 3.6.14
 * [new tag]             3.6.15     -> 3.6.15
 * [new tag]             3.6.16     -> 3.6.16
 * [new tag]             3.6.17     -> 3.6.17
 * [new tag]             3.6.18     -> 3.6.18
 * [new tag]             3.6.19     -> 3.6.19
 * [new tag]             3.6.2      -> 3.6.2
 * [new tag]             3.6.20     -> 3.6.20
 * [new tag]             3.6.21     -> 3.6.21
 * [new tag]             3.6.3      -> 3.6.3
 * [new tag]             3.6.4      -> 3.6.4
 * [new tag]             3.6.5      -> 3.6.5
 * [new tag]             3.6.6      -> 3.6.6
 * [new tag]             3.6.7      -> 3.6.7
 * [new tag]             3.6.8      -> 3.6.8
 * [new tag]             3.6.9      -> 3.6.9
 * [new tag]             4.0.0      -> 4.0.0
 * [new tag]             4.0.1      -> 4.0.1
 * [new tag]             4.0.10     -> 4.0.10
 * [new tag]             4.0.11     -> 4.0.11
 * [new tag]             4.0.12     -> 4.0.12
 * [new tag]             4.0.13     -> 4.0.13
 * [new tag]             4.0.14     -> 4.0.14
 * [new tag]             4.0.15     -> 4.0.15
 * [new tag]             4.0.16     -> 4.0.16
 * [new tag]             4.0.17     -> 4.0.17
 * [new tag]             4.0.18     -> 4.0.18
 * [new tag]             4.0.19     -> 4.0.19
 * [new tag]             4.0.2      -> 4.0.2
 * [new tag]             4.0.20     -> 4.0.20
 * [new tag]             4.0.21     -> 4.0.21
 * [new tag]             4.0.22     -> 4.0.22
 * [new tag]             4.0.23     -> 4.0.23
 * [new tag]             4.0.24     -> 4.0.24
 * [new tag]             4.0.25     -> 4.0.25
 * [new tag]             4.0.26     -> 4.0.26
 * [new tag]             4.0.27     -> 4.0.27
 * [new tag]             4.0.28     -> 4.0.28
 * [new tag]             4.0.3      -> 4.0.3
 * [new tag]             4.0.4      -> 4.0.4
 * [new tag]             4.0.5      -> 4.0.5
 * [new tag]             4.0.6      -> 4.0.6
 * [new tag]             4.0.7      -> 4.0.7
 * [new tag]             4.0.8      -> 4.0.8
 * [new tag]             4.0.9      -> 4.0.9
 * [new tag]             4.1.0      -> 4.1.0
 * [new tag]             4.1.1      -> 4.1.1
 * [new tag]             4.1.2      -> 4.1.2
+ execute /usr/sbin/git fetch --force --tags origin
+ /usr/sbin/git fetch --force --tags origin
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 13 (delta 5), reused 11 (delta 5), pack-reused 0
Unpacking objects: 100% (13/13), 7.49 KiB | 639.00 KiB/s, done.
From https://github.com/Homebrew/brew
 * [new tag]             4.0.29     -> 4.0.29
+ execute /usr/sbin/git reset --hard origin/master
+ /usr/sbin/git reset --hard origin/master
HEAD is now at c531a35ae Merge pull request #15788 from osalbahr/config-os-version
+ [[ /home/linuxbrew/.linuxbrew/Homebrew != \/\h\o\m\e\/\l\i\n\u\x\b\r\e\w\/\.\l\i\n\u\x\b\r\e\w ]]
+ [[ /home/linuxbrew/.linuxbrew/Homebrew == \/\h\o\m\e\/\l\i\n\u\x\b\r\e\w\/\.\l\i\n\u\x\b\r\e\w\/\H\o\m\e\b\r\e\w ]]
+ execute ln -sf ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/brew
+ ln -sf ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/brew
+ [[ -n '' ]]
+ execute /home/linuxbrew/.linuxbrew/bin/brew update --force --quiet
+ /home/linuxbrew/.linuxbrew/bin/brew update --force --quiet
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:68923daf3e139482b977c3deba63a3b54ea37bb5f716482948878819ef911bad
######################################################################### 100.0%
==> Pouring portable-ruby-2.6.10_1.x86_64_linux.bottle.tar.gz
+ [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\h\o\m\e\/\l\i\n\u\x\b\r\e\w\/\.\l\i\n\u\x\b\r\e\w\/\b\i\n\:* ]]
+ warn '/home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the '\''Next steps'\'' section below.'
++ chomp '/home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the '\''Next steps'\'' section below.'
++ printf %s '/home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the '\''Next steps'\'' section below.'
+ printf 'Warning: %s\n' '/home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the '\''Next steps'\'' section below.'
Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
+ ohai 'Installation successful!'
++ shell_join 'Installation successful!'
++ local arg
++ printf %s 'Installation successful!'
++ shift
+ printf '==> %s\n' 'Installation successful!'
==> Installation successful!
+ echo

ring_bell

[[ -t 1 ]]

printf '\a'

ohai 'Homebrew has enabled anonymous aggregate formulae and cask analytics.'
++ shell_join 'Homebrew has enabled anonymous aggregate formulae and cask analytics.'
++ local arg
++ printf %s 'Homebrew has enabled anonymous aggregate formulae and cask analytics.'
++ shift

printf '==> %s\n' 'Homebrew has enabled anonymous aggregate formulae and cask analytics.'
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
++ cat

echo 'Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
'
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

ohai 'Homebrew is run entirely by unpaid volunteers. Please consider donating:'
++ shell_join 'Homebrew is run entirely by unpaid volunteers. Please consider donating:'
++ local arg
++ printf %s 'Homebrew is run entirely by unpaid volunteers. Please consider donating:'
++ shift

printf '==> %s\n' 'Homebrew is run entirely by unpaid volunteers. Please consider donating:'
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
++ cat

echo '  https://github.com/Homebrew/brew#donations
'
https://github.com/Homebrew/brew#donations

cd /home/linuxbrew/.linuxbrew/Homebrew

execute /usr/sbin/git config --replace-all homebrew.analyticsmessage true

/usr/sbin/git config --replace-all homebrew.analyticsmessage true

execute /usr/sbin/git config --replace-all homebrew.caskanalyticsmessage true

/usr/sbin/git config --replace-all homebrew.caskanalyticsmessage true

ohai 'Next steps:'
++ shell_join 'Next steps:'
++ local arg
++ printf %s 'Next steps:'
++ shift

printf '==> %s\n' 'Next steps:'
==> Next steps:

case "${SHELL}" in

[[ -r /home/archlinux/.bash_profile ]]

shell_profile=/home/archlinux/.bash_profile

grep -qs 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' /home/archlinux/.bash_profile

cat

Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/archlinux/.bash_profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

[[ -n '' ]]
[[ -n 1 ]]
echo '- Install Homebrew'''s dependencies if you have sudo access:'

Install Homebrew's dependencies if you have sudo access:
++ command -v apt-get

[[ -x '' ]]
++ command -v yum
[[ -x '' ]]
++ command -v pacman
[[ -x /usr/sbin/pacman ]]
echo '    sudo pacman -S base-devel'
sudo pacman -S base-devel
cat
For more information, see:
https://docs.brew.sh/Homebrew-on-Linux

We recommend that you install GCC:
brew install gcc

cat

Run brew help to get started
Further documentation:
https://docs.brew.sh

$     eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ brew doctor
Your system is ready to brew.
$ brew config
HOMEBREW_VERSION: 4.1.2-33-gc531a35
ORIGIN: https://github.com/Homebrew/brew
HEAD: c531a35ae70bcef65f6d0d9f00875fbbce7f2cc9
Last commit: 2 hours ago
Core tap JSON: 29 Jul 20:21 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.10 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.41.0 => /bin/git
Curl: 8.2.1 => /bin/curl
Kernel: Linux 6.4.4-200.fc38.x86_64 x86_64 GNU/Linux
OS: Arch Linux
Host glibc: 2.37
/usr/bin/gcc: 13.1.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A

It might be worth noting that ubuntu and fedora both ship ssh with git. In other words:
$ podman run --rm -it ubuntu
root@2c28206253dc:/# git
bash: git: command not found
root@2c28206253dc:/# ssh
bash: ssh: command not found
root@2c28206253dc:/# (apt-get update && apt-get install -yqq git) &> >(tail)
Setting up perl (5.34.0-3ubuntu1.2) ...
Setting up xauth (1:1.1-1build2) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git (1:2.34.1-1ubuntu1.9) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20230311ubuntu<IP_ADDRESS>) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@2c28206253dc:/# echo $?
0
root@2c28206253dc:/# git --version
git version 2.34.1
root@2c28206253dc:/# ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command [argument ...]]
root@2c28206253dc:/#
exit
$ podman run --rm -it fedora
[root@d962efb92dfd /]# ssh
bash: ssh: command not found
[root@d962efb92dfd /]# git
bash: git: command not found
[root@d962efb92dfd /]# dnf install -y git &> >(tail)
  perl-locale-1.10-497.fc38.noarch
  perl-mro-1.26-497.fc38.x86_64
  perl-overload-1.35-497.fc38.noarch
  perl-overloading-0.02-497.fc38.noarch
  perl-parent-1:0.241-1.fc38.noarch
  perl-podlators-1:5.01-2.fc38.noarch
  perl-vars-1.05-497.fc38.noarch
  util-linux-2.38.1-4.fc38.x86_64

Complete!
[root@d962efb92dfd /]# git --version
git version 2.41.0
[root@d962efb92dfd /]# ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command [argument ...]]

Just to be sure, what's the output of git config -l | grep -i github?

Just to be sure, what's the output of git config -l in your Arch Linux environment?

Oh. Good catch!
$ git config -l | grep ssh
url.ssh://git@github.com/.insteadof=https://github.com/

I forgot that I have a non-default ~/.gitconfig. Stashing the config file makes the error go away:
$ mv ~/.gitconfig ~/.gitconfig.old
$ git config -l | grep ssh
$ CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Warning: Running in non-interactive mode because `$CI` is set.
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
==> Found Git: /usr/sbin/git
==> Found cURL: /usr/sbin/curl
==> Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin
==> Downloading and installing Homebrew...
remote: Enumerating objects: 245202, done.
remote: Counting objects: 100% (1453/1453), done.
remote: Compressing objects: 100% (831/831), done.
...

So it is on me to install ssh when using Homebrew in a distrobox (or stash the file).
Two comments before I close this PR:

Since running the apt/yum commands include ssh as a dependency, would it make sense to also include it for Arch Linux? It's technically not a "build requirement" so I don't think it's strictly necessary.

FYI, he same happens with ubuntu if I apt install --no-install-recommends git:

$ sudo apt install --no-install-recommends git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Warning: Running in non-interactive mode because `$CI` is set.
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
error: cannot run ssh: No such file or directory
fatal: unable to fork
Failed during: /usr/bin/git fetch --force origin

 Full log

$ CI=1 /bin/bash -cx "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+ set -u
+ '[' -z '5.1.16(1)-release' ']'
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ 0 -gt 0 ]]
+ [[ -t 1 ]]
++ tty_escape '4;39'
++ printf '\033[%sm' '4;39'
+ tty_underline=''
++ tty_mkbold 34
++ tty_escape '1;34'
++ printf '\033[%sm' '1;34'
+ tty_blue=''
++ tty_mkbold 31
++ tty_escape '1;31'
++ printf '\033[%sm' '1;31'
+ tty_red=''
++ tty_mkbold 39
++ tty_escape '1;39'
++ printf '\033[%sm' '1;39'
+ tty_bold=''
++ tty_escape 0
++ printf '\033[%sm' 0
+ tty_reset=''
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ warn 'Running in non-interactive mode because `$CI` is set.'
++ chomp 'Running in non-interactive mode because `$CI` is set.'
++ printf %s 'Running in non-interactive mode because `$CI` is set.'
+ printf 'Warning: %s\n' 'Running in non-interactive mode because `$CI` is set.'
Warning: Running in non-interactive mode because `$CI` is set.
+ NONINTERACTIVE=1
+ [[ -z dracula ]]
++ uname
+ OS=Linux
+ [[ Linux == \L\i\n\u\x ]]
+ HOMEBREW_ON_LINUX=1
+ [[ -n '' ]]
++ uname -m
+ UNAME_MACHINE=x86_64
+ HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
+ HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
+ HOMEBREW_CACHE=/var/home/dracula/.cache/Homebrew
+ STAT_PRINTF=("stat" "--printf")
+ PERMISSION_FORMAT=%a
+ CHOWN=("/bin/chown")
+ CHGRP=("/bin/chgrp")
++ id -gn
+ GROUP=dracula
+ TOUCH=("/bin/touch")
+ INSTALL=("/usr/bin/install" -d -o "${USER}" -g "${GROUP}" -m "0755")
+ CHMOD=("/bin/chmod")
+ MKDIR=("/bin/mkdir" "-p")
+ HOMEBREW_BREW_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_DEFAULT_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ HOMEBREW_BREW_GIT_REMOTE=https://github.com/Homebrew/brew
+ HOMEBREW_CORE_GIT_REMOTE=https://github.com/Homebrew/homebrew-core
+ [[ https://github.com/Homebrew/brew == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w\.\g\i\t ]]
+ [[ https://github.com/Homebrew/homebrew-core == \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e\.\g\i\t ]]
+ export HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE
+ MACOS_NEWEST_UNSUPPORTED=14.0
+ MACOS_OLDEST_SUPPORTED=11.0
+ REQUIRED_RUBY_VERSION=2.6
+ REQUIRED_GLIBC_VERSION=2.13
+ REQUIRED_CURL_VERSION=7.41.0
+ REQUIRED_GIT_VERSION=2.7.0
+ export HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ HOMEBREW_NO_ANALYTICS_THIS_RUN=1
+ export HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
+ unset HAVE_SUDO_ACCESS
+ [[ -n 1 ]]
+ no_usable_ruby
++ find_tool ruby
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a ruby
+++ type -P -a ruby
+ [[ -z '' ]]
+ outdated_glibc
+ local glibc_version
++ ldd --version
++ head -n1
++ grep -o '^[0-9]\+\.[0-9]\+'
++ grep -o '[0-9.]*$'
+ glibc_version=2.35
+ version_lt 2.35 2.13
+ [[ 2 -lt 2 ]]
+ [[ 2 -eq 2 ]]
+ [[ 35 -lt 13 ]]
+ [[ -x /usr/bin/sudo ]]
+ /usr/bin/sudo -n -v
+ cd /usr
+ ohai 'Checking for `sudo` access (which may request your password)...'
++ shell_join 'Checking for `sudo` access (which may request your password)...'
++ local arg
++ printf %s 'Checking for `sudo` access (which may request your password)...'
++ shift
+ printf '==> %s\n' 'Checking for `sudo` access (which may request your password)...'
==> Checking for `sudo` access (which may request your password)...
+ [[ -n '' ]]
+ [[ -w /home/linuxbrew/.linuxbrew ]]
+ HOMEBREW_CORE=/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core
+ check_run_command_as_root
+ [[ 1000 == \0 ]]
+ return
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ [[ ! -x /home/linuxbrew/.linuxbrew ]]
+ [[ -n '' ]]
+ [[ x86_64 == \a\a\r\c\h\6\4 ]]
+ [[ x86_64 != \x\8\6\_\6\4 ]]
+ [[ -n '' ]]
+ ohai 'This script will install:'
++ shell_join 'This script will install:'
++ local arg
++ printf %s 'This script will install:'
++ shift
+ printf '==> %s\n' 'This script will install:'
==> This script will install:
+ echo /home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/bin/brew
+ echo /home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
+ echo /home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
+ echo /home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
+ echo /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
+ echo /home/linuxbrew/.linuxbrew/Homebrew
/home/linuxbrew/.linuxbrew/Homebrew
+ directories=(bin etc include lib sbin share opt var Frameworks etc/bash_completion.d lib/pkgconfig share/aclocal share/doc share/info share/locale share/man share/man/man1 share/man/man2 share/man/man3 share/man/man4 share/man/man5 share/man/man6 share/man/man7 share/man/man8 var/log var/homebrew var/homebrew/linked bin/brew)
+ group_chmods=()
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin
+ [[ -e /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -r /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -w /home/linuxbrew/.linuxbrew/bin ]]
+ [[ -x /home/linuxbrew/.linuxbrew/bin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc
+ [[ -e /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -r /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -w /home/linuxbrew/.linuxbrew/etc ]]
+ [[ -x /home/linuxbrew/.linuxbrew/etc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/include
+ [[ -e /home/linuxbrew/.linuxbrew/include ]]
+ [[ -r /home/linuxbrew/.linuxbrew/include ]]
+ [[ -w /home/linuxbrew/.linuxbrew/include ]]
+ [[ -x /home/linuxbrew/.linuxbrew/include ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib
+ [[ -e /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -r /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -w /home/linuxbrew/.linuxbrew/lib ]]
+ [[ -x /home/linuxbrew/.linuxbrew/lib ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/sbin
+ [[ -e /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -r /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -w /home/linuxbrew/.linuxbrew/sbin ]]
+ [[ -x /home/linuxbrew/.linuxbrew/sbin ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share
+ [[ -e /home/linuxbrew/.linuxbrew/share ]]
+ [[ -r /home/linuxbrew/.linuxbrew/share ]]
+ [[ -w /home/linuxbrew/.linuxbrew/share ]]
+ [[ -x /home/linuxbrew/.linuxbrew/share ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/opt
+ [[ -e /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -r /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -w /home/linuxbrew/.linuxbrew/opt ]]
+ [[ -x /home/linuxbrew/.linuxbrew/opt ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var
+ [[ -e /home/linuxbrew/.linuxbrew/var ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/Frameworks
+ [[ -e /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -r /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -w /home/linuxbrew/.linuxbrew/Frameworks ]]
+ [[ -x /home/linuxbrew/.linuxbrew/Frameworks ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/etc/bash_completion.d
+ [[ -e /home/linuxbrew/.linuxbrew/etc/bash_completion.d ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/lib/pkgconfig
+ [[ -e /home/linuxbrew/.linuxbrew/lib/pkgconfig ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/aclocal
+ [[ -e /home/linuxbrew/.linuxbrew/share/aclocal ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/doc
+ [[ -e /home/linuxbrew/.linuxbrew/share/doc ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/info
+ [[ -e /home/linuxbrew/.linuxbrew/share/info ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/locale
+ [[ -e /home/linuxbrew/.linuxbrew/share/locale ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man
+ [[ -e /home/linuxbrew/.linuxbrew/share/man ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man1
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man1 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man2
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man2 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man3
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man3 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man4
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man4 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man5
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man5 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man6
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man6 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man7
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man7 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/share/man/man8
+ [[ -e /home/linuxbrew/.linuxbrew/share/man/man8 ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/log
+ [[ -e /home/linuxbrew/.linuxbrew/var/log ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/var/homebrew/linked
+ [[ -e /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -r /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -w /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ [[ -x /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ for dir in "${directories[@]}"
+ exists_but_not_writable /home/linuxbrew/.linuxbrew/bin/brew
+ [[ -e /home/linuxbrew/.linuxbrew/bin/brew ]]
+ directories=(share/zsh share/zsh/site-functions)
+ zsh_dirs=()
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ for dir in "${directories[@]}"
+ zsh_dirs+=("${HOMEBREW_PREFIX}/${dir}")
+ directories=(bin etc include lib sbin share var opt share/zsh share/zsh/site-functions var/homebrew var/homebrew/linked Cellar Caskroom Frameworks)
+ mkdirs=()
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/bin ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/etc ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/include ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/lib ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/sbin ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/opt ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/var/homebrew/linked ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Cellar ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Caskroom ]]
+ for dir in "${directories[@]}"
+ [[ -d /home/linuxbrew/.linuxbrew/Frameworks ]]
+ user_chmods=()
+ mkdirs_user_only=()
+ [[ 2 -gt 0 ]]
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh ]]
+ user_only_chmod /home/linuxbrew/.linuxbrew/share/zsh
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh ]]
++ get_permission /home/linuxbrew/.linuxbrew/share/zsh
++ stat --printf %a /home/linuxbrew/.linuxbrew/share/zsh
+ [[ 755 != 75[0145] ]]
+ for dir in "${zsh_dirs[@]}"
+ [[ ! -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
+ user_only_chmod /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ [[ -d /home/linuxbrew/.linuxbrew/share/zsh/site-functions ]]
++ get_permission /home/linuxbrew/.linuxbrew/share/zsh/site-functions
++ stat --printf %a /home/linuxbrew/.linuxbrew/share/zsh/site-functions
+ [[ 755 != 75[0145] ]]
+ chmods=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ chowns=()
+ chgrps=()
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ non_default_repos=
+ additional_shellenv_commands=()
+ [[ https://github.com/Homebrew/brew != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\b\r\e\w ]]
+ [[ https://github.com/Homebrew/homebrew-core != \h\t\t\p\s\:\/\/\g\i\t\h\u\b\.\c\o\m\/\H\o\m\e\b\r\e\w\/\h\o\m\e\b\r\e\w\-\c\o\r\e ]]
+ [[ -n '' ]]
+ [[ -z 1 ]]
+ [[ -d /home/linuxbrew/.linuxbrew ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ -d /home/linuxbrew/.linuxbrew/Homebrew ]]
+ execute_sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ args=('/bin/chown' '-R' 'dracula:dracula' '/home/linuxbrew/.linuxbrew/Homebrew')
+ local -a args
+ have_sudo_access
+ [[ ! -x /usr/bin/sudo ]]
+ SUDO=('/usr/bin/sudo')
+ local -a SUDO
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ SUDO+=("-n")
+ [[ -z '' ]]
+ [[ -n 1 ]]
+ /usr/bin/sudo -n -l mkdir
+ HAVE_SUDO_ACCESS=0
+ [[ -n '' ]]
+ return 0
+ [[ -n '' ]]
+ ohai /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
++ shell_join /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
++ local arg
++ printf %s /usr/bin/sudo
++ shift
++ for arg in "$@"
++ printf ' '
++ printf %s /bin/chown
++ for arg in "$@"
++ printf ' '
++ printf %s -R
++ for arg in "$@"
++ printf ' '
++ printf %s dracula:dracula
++ for arg in "$@"
++ printf ' '
++ printf %s /home/linuxbrew/.linuxbrew/Homebrew
+ printf '==> %s\n' '/usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew'
==> /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ /usr/bin/sudo /bin/chown -R dracula:dracula /home/linuxbrew/.linuxbrew/Homebrew
+ [[ -d /var/home/dracula/.cache/Homebrew ]]
+ exists_but_not_writable /var/home/dracula/.cache/Homebrew
+ [[ -e /var/home/dracula/.cache/Homebrew ]]
+ [[ -r /var/home/dracula/.cache/Homebrew ]]
+ [[ -w /var/home/dracula/.cache/Homebrew ]]
+ [[ -x /var/home/dracula/.cache/Homebrew ]]
+ file_not_owned /var/home/dracula/.cache/Homebrew
++ get_owner /var/home/dracula/.cache/Homebrew
++ stat --printf %u /var/home/dracula/.cache/Homebrew
++ id -u
+ [[ 1000 != \1\0\0\0 ]]
+ file_not_grpowned /var/home/dracula/.cache/Homebrew
++ id -G dracula
++ get_group /var/home/dracula/.cache/Homebrew
++ stat --printf %g /var/home/dracula/.cache/Homebrew
+ [[  1000 27  != *\ \1\0\0\0\ * ]]
+ [[ -d /var/home/dracula/.cache/Homebrew ]]
+ execute /bin/touch /var/home/dracula/.cache/Homebrew/.cleaned
+ /bin/touch /var/home/dracula/.cache/Homebrew/.cleaned
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ should_install_command_line_tools
+ [[ -n 1 ]]
+ return 1
+ [[ -n '' ]]
+ USABLE_GIT=/usr/bin/git
+ [[ -n 1 ]]
++ find_tool git
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a git
+++ type -P -a git
++ [[ /usr/bin/git != /* ]]
++ test_git /usr/bin/git
++ [[ ! -x /usr/bin/git ]]
++ local git_version_output
+++ /usr/bin/git --version
++ git_version_output='git version 2.34.1'
++ [[ git version 2.34.1 =~ git version ([^ ]*).* ]]
+++ major_minor 2.34.1
++++ x=34.1
++++ echo 34
+++ echo 2.34
+++ major_minor 2.7.0
++++ x=7.0
++++ echo 7
+++ echo 2.7
++ version_ge 2.34 2.7
++ [[ 2 -gt 2 ]]
++ [[ 2 -eq 2 ]]
++ [[ 34 -ge 7 ]]
++ echo /usr/bin/git
++ break
+ USABLE_GIT=/usr/bin/git
++ command -v git
+ [[ -z /usr/bin/git ]]
+ [[ -z /usr/bin/git ]]
+ [[ /usr/bin/git != /usr/bin/git ]]
+ command -v curl
+ [[ -n 1 ]]
++ find_tool curl
++ [[ 1 -ne 1 ]]
++ local executable
++ read -r executable
+++ which -a curl
+++ type -P -a curl
++ [[ /usr/bin/curl != /* ]]
++ test_curl /usr/bin/curl
++ [[ ! -x /usr/bin/curl ]]
++ local curl_version_output curl_name_and_version
+++ /usr/bin/curl --version
++ curl_version_output='curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.15
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd'
++ curl_name_and_version='curl 7.81.0'
+++ major_minor 7.81.0
++++ x=81.0
++++ echo 81
+++ echo 7.81
+++ major_minor 7.41.0
++++ x=41.0
++++ echo 41
+++ echo 7.41
++ version_ge 7.81 7.41
++ [[ 7 -gt 7 ]]
++ [[ 7 -eq 7 ]]
++ [[ 81 -ge 41 ]]
++ echo /usr/bin/curl
++ break
+ USABLE_CURL=/usr/bin/curl
+ [[ -z /usr/bin/curl ]]
+ [[ /usr/bin/curl != /usr/bin/curl ]]
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ ohai 'Downloading and installing Homebrew...'
++ shell_join 'Downloading and installing Homebrew...'
++ local arg
++ printf %s 'Downloading and installing Homebrew...'
++ shift
+ printf '==> %s\n' 'Downloading and installing Homebrew...'
==> Downloading and installing Homebrew...
+ cd /home/linuxbrew/.linuxbrew/Homebrew
+ execute /usr/bin/git -c init.defaultBranch=master init --quiet
+ /usr/bin/git -c init.defaultBranch=master init --quiet
+ execute /usr/bin/git config remote.origin.url https://github.com/Homebrew/brew
+ /usr/bin/git config remote.origin.url https://github.com/Homebrew/brew
+ execute /usr/bin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ /usr/bin/git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
+ execute /usr/bin/git config --bool core.autocrlf false
+ /usr/bin/git config --bool core.autocrlf false
+ execute /usr/bin/git config --bool core.symlinks true
+ /usr/bin/git config --bool core.symlinks true
+ execute /usr/bin/git fetch --force origin
+ /usr/bin/git fetch --force origin
error: cannot run ssh: No such file or directory
fatal: unable to fork
+++ shell_join /usr/bin/git fetch --force origin
+++ local arg
+++ printf %s /usr/bin/git
+++ shift
+++ for arg in "$@"
+++ printf ' '
+++ printf %s fetch
+++ for arg in "$@"
+++ printf ' '
+++ printf %s --force
+++ for arg in "$@"
+++ printf ' '
+++ printf %s origin
++ printf 'Failed during: %s' '/usr/bin/git fetch --force origin'
+ abort 'Failed during: /usr/bin/git fetch --force origin'
+ printf '%s\n' 'Failed during: /usr/bin/git fetch --force origin'
Failed during: /usr/bin/git fetch --force origin
+ exit 1
+ exit 1

Side note: I noticed Setting HOMEBREW_DEVELOPER to use Git/cURL not in /usr/bin. And yes, /usr/bin/{git,curl} do not come first in PATH, but /usr/sbin/curl is the same as /usr/bin/curl. Is this behavior of install.sh intended?
$ podman run --rm -it archlinux
[root@bc188855da45 /]# command -v curl
/usr/sbin/curl
[root@bc188855da45 /]# realpath $(!!)
realpath $(command -v curl)
/usr/bin/curl
[root@bc188855da45 /]# ls -ld /usr/sbin
lrwxrwxrwx 1 root root 3 Jan 31 20:51 /usr/sbin -> bin

Since running the apt/yum commands include ssh as a dependency, would it make sense to also include it for Arch Linux? It's technically not a "build requirement" so I don't think it's strictly necessary.

I don't think specifying anything other than Homebrew's direct dependencies makes sense. apt and yum are not direct dependencies, so why specify them or any of their transitive dependencies which can be radically different across platforms?

FYI, the same happens with ubuntu if I apt install --no-install-recommends git

Since it's erroring on the same operation (git fetch origin), that almost certainly means you also have a Git insteadOf directive here that's forcing SSH-based remotes. No Git client I've ever seen would try to run SSH unless it's part of the remote URL it's trying to access.

Thank you for clarifying!

Since it's erroring on the same operation (git fetch origin), that almost certainly means you also have a Git insteadOf directive here that's forcing SSH-based remotes.

That’s true. I forgot to say that I created that environment the same way (i.e. a shared, bind mounted home by virtue of using distrobox)

No Git client I've ever seen would try to run SSH unless it's part of the remote URL it's trying to access.

I did the “insteadOf” so that I can git push to GitHub without it asking for my password and then getting rejected because that’s not a supported method of authentication anymore. Instead of the “insteadOf” is it more common to use ssh as part of the git remote add? For example, the one in How to Open a Pull Request (and get it merged). Or how would you make the git push succeed?
The same thing for brew bump-formula-pr:

https://github.com/orgs/Homebrew/discussions/4678#discussioncomment-6570511

insteadOf is exactly the right tool to automatically redirect GitHub URLs for authentication purposes. You just have to:
a. formulate them correctly, and
b. have SSH installed
In my setup, I want to have authenticated write access to all my own projects, so it's trivial to use insteadOf to rewrite only GitHub URLs under my account:
[url "github_gromgit:gromgit/"]
        insteadOf = https://github.com/gromgit/

and create an SSH Host entry that picks the right key:
Host github_gromgit
  Hostname github.com
  User git
  IdentityFile ~/.ssh/id_rsa.github.gromgit

Oh ok. Yeah my ~/.gitconfig has a catch-all for all github.com, based on a stackoverflow post.
Is it preferred to create an entry per each repo that you maintain? Where can I read more on the best practices?
Also, I’m not sure if this issue is common enough to warrant adding instructions (or a hyperlink) to set up using ssh when following the steps in How to Open a Pull Request (and get it merged). I kinda had to figure out on my own how to make git never ask for my password when pushing to GitHub (for other repos).

Oh ok. Yeah my ~/.gitconfig has a catch-all for all github.com, based on a stackoverflow post.

That's...not good advice. Blanket-rewriting GitHub URLs like that forces authentication for all repos, even the ones you don't own. That may have unexpected side effects down the line.

Is it preferred to create an entry per each repo that you maintain? Where can I read more on the best practices?

See the .gitconfig I posted earlier. One rewrite covers all my own repos under one SSH keypair, so I can push to and initiate PRs from any of my forks at any time, zero issues. I can't remember if it's possible to associate separate SSH keys with individual repos under the same account, but that's just an unnecessary hassle in my books anyway.

Also, I’m not sure if this issue is common enough to warrant adding instructions (or a hyperlink) to set up using ssh when following the steps in How to Open a Pull Request (and get it merged). I kinda had to figure out on my own how to make git never ask for my password when pushing to GitHub (for other repos).

You can always open a PR, but as that's not a Homebrew-specific topic, I suspect it may not be accepted.