Skip to content

Commit

Permalink
Fix: use which instead of type to check for realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschmitt committed May 14, 2020
1 parent adc9c19 commit 4997b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/basher-link
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set -e

resolve_link() {
if type -p realpath >/dev/null; then
if [ ! -z "$(which realpath)" ]; then
realpath "$1"
else
readlink -f "$1"
Expand Down

0 comments on commit 4997b44

Please sign in to comment.