Skip to content

Commit

Permalink
Hide possible warnings from which
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Apr 17, 2023
1 parent b46f06a commit 2eec073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.8.3

- Hide possible warnings displayed by `which` on some platforms

# v1.8.2

- Fix the fix from 1.8.1, which broke some Linux distros.
Expand Down
2 changes: 1 addition & 1 deletion git-relative-path
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

root="$(git root)"
realpath_bin="$(which grealpath realpath | head -n1)"
realpath_bin="$(which grealpath realpath 2>/dev/null | head -n1)"

if [ ! -x "$realpath_bin" ]; then
echo "'realpath' or 'grealpath' utility not found. Please install GNU coreutils." >&2
Expand Down

0 comments on commit 2eec073

Please sign in to comment.