Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
add info to install gnu core utils on mac devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schrodi committed Jun 11, 2021
1 parent a77b4e6 commit f52fdc7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions hack/install-requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ echo "> Install Registry test binaries"
mkdir -p ${PROJECT_ROOT}/tmp/test/bin
curl -L "https://github.com/gardener/component-cli/raw/registry/bin/registry-$(go env GOOS)-$(go env GOARCH)" --output ${PROJECT_ROOT}/tmp/test/bin/registry
chmod +x ${PROJECT_ROOT}/tmp/test/bin/registry

platform=$(uname -s)
if [[ ${platform} == *"Darwin"* ]]; then
cat <<EOM
You are running in a MAC OS environment!
Please make sure you have installed the following requirements:
- GNU Core Utils
- GNU Tar
- GNU Sed
Brew command:
$ brew install coreutils gnu-sed gnu-tar grep jq
Please allow them to be used without their "g" prefix:
$ export PATH=/usr/local/opt/coreutils/libexec/gnubin:\$PATH

This comment has been minimized.

Copy link
@guewa

guewa Jun 11, 2021

Contributor

the backslash \ is too much, this will set the PATH env var wrong

This comment has been minimized.

Copy link
@schrodit

schrodit Jun 14, 2021

the backlash here is because the $ has to be escaped when printed with echo in a shell.

$ export PATH=/usr/local/opt/gnu-sed/libexec/gnubin:\$PATH

This comment has been minimized.

Copy link
@guewa

guewa Jun 11, 2021

Contributor

the backslash \ is too much, this will set the PATH env var wrong

$ export PATH=/usr/local/opt/gnu-tar/libexec/gnubin:\$PATH

This comment has been minimized.

Copy link
@guewa

guewa Jun 11, 2021

Contributor

the backslash \ is too much, this will set the PATH env var wrong

$ export PATH=/usr/local/opt/grep/libexec/gnubin:\$PATH

This comment has been minimized.

Copy link
@guewa

guewa Jun 11, 2021

Contributor

the backslash \ is too much, this will set the PATH env var wrong

EOM
fi

0 comments on commit f52fdc7

Please sign in to comment.