Skip to content

Commit

Permalink
Error on missing greadlink (solana-labs#25817)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Jun 8, 2022
1 parent 79a8ecd commit d4a442c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/cargo-install-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ if [[ $OSTYPE == darwin* ]]; then
# Mac OS X's version of `readlink` does not support the -f option,
# But `greadlink` does, which you can get with `brew install coreutils`
readlink_cmd="greadlink"

if ! command -v ${readlink_cmd} &> /dev/null
then
echo "${readlink_cmd} could not be found. You may need to install coreutils: \`brew install coreutils\`"
exit 1
fi
fi

cargo="$("${readlink_cmd}" -f "${here}/../cargo")"

set -e
Expand Down

0 comments on commit d4a442c

Please sign in to comment.