Skip to content

Commit

Permalink
Add error message for readlink -f failure (solana-labs#23102)
Browse files Browse the repository at this point in the history
* Add error message for readlink -f failure
  • Loading branch information
willhickey authored and jeffwashington committed Feb 24, 2022
1 parent a8f4d8e commit 36754c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/cargo-for-all-lock-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
here="$(dirname "$0")"
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

shifted_args=()
Expand Down

0 comments on commit 36754c8

Please sign in to comment.