Add error message for readlink -f failure (#23102) (#23121)

* Add error message for readlink -f failure

(cherry picked from commit 89f5145f64)

Co-authored-by: Will Hickey <will.hickey@solana.com>
This commit is contained in:
mergify[bot]
2022-02-14 20:23:26 +00:00
committed by GitHub
parent 054b95cbe1
commit 85570ac207

View File

@ -3,6 +3,13 @@
here="$(dirname "$0")" here="$(dirname "$0")"
cargo="$(readlink -f "${here}/../cargo")" cargo="$(readlink -f "${here}/../cargo")"
if [[ -z $cargo ]]; then
>&2 echo "Failed to find cargo. Mac readlink doesn't support -f. Consider switching
to gnu readlink with 'brew install coreutils' and then symlink greadlink as
/usr/local/bin/readlink."
exit 1
fi
set -e set -e
shifted_args=() shifted_args=()