#!/usr/bin/env bash
set -euo pipefail

echo_do "brew: Installing basic packages..."
BREW_FORMULAE="$(cat <<-EOF
curl
git
rsync
EOF
)"
brew_install "${BREW_FORMULAE}"
unset BREW_FORMULAE
echo_done

echo_do "brew: Testing basic packages..."
exe_and_grep_q "curl --version | head -1" "^curl 7\\."
exe_and_grep_q "git --version | head -1" "^git version 2\\."
# IDK rsync v3 seems to be installed by homebrew, PATH is correct
# yet `rsync --version` which should be equivalent to `/usr/local/bin/rsync --version`
# says it's v2...
# https://travis-ci.com/tobiipro/support-firecloud/jobs/169054509#L1571
# https://travis-ci.com/tobiipro/support-firecloud/jobs/169054509#L1587
#exe_and_grep_q "rsync --version | head -1" "^rsync  version 3\\."
exe_and_grep_q "rsync --version | head -1" "^rsync  version "
echo_done

#!/usr/bin/env bash
set -euo pipefail

echo_do "brew: Installing basic packages..."
BREW_FORMULAE="$(cat <<-EOF
curl
git
rsync
EOF
)"
brew_install "${BREW_FORMULAE}"
unset BREW_FORMULAE
echo_done

echo_do "brew: Testing basic packages..."
exe_and_grep_q "curl --version | head -1" "^curl 7\\."
exe_and_grep_q "git --version | head -1" "^git version 2\\."
exe_and_grep_q "rsync --version | head -1" "^rsync  version 3\\."
echo_done

Revert "temp fix. silence error on rsync v2"
Revert "temp fix. silence error on rsync v2"

This reverts commit 163e26710e413b913ba50aec6f20a3548099fabc.
