[Ubuntu] Install zstd homebrew (#3181)

* install zstd using brew

* fix typo

* remove Run-Command

* replace to Take-OutputPart

* create zstd symlinks
This commit is contained in:
Aleksandr Chebotov
2021-04-14 19:34:49 +03:00
committed by GitHub
parent 16fd521369
commit b04de88f6e
7 changed files with 36 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
# Source the helpers
source $HELPER_SCRIPTS/etc-environment.sh
source $HELPER_SCRIPTS/install.sh
# Install the Homebrew on Linux
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
@@ -25,4 +26,15 @@ setEtcEnvironmentVariable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650
echo "Validate the installation reloading /etc/environment"
reloadEtcEnvironment
# Install additional brew packages
brew_packages=$(get_toolset_value .brew[].name)
for package in $brew_packages; do
echo "Install $package"
brew install $package
# create symlinks for zstd in /usr/local/bin
if [[ $package == "zstd" ]]; then
find $(brew --prefix)/bin -name *zstd* -exec sudo sh -c 'ln -s {} /usr/local/bin/$(basename {})' ';'
fi
done
invoke_tests "Tools" "Homebrew"