Skip to content

Commit e1bd47d

Browse files
authored
show-utils.sh use GNU realpath
1 parent 9887a3c commit e1bd47d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

util/show-utils.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@
44
# spell-checker:ignore (utils) cksum coreutils dircolors hashsum mkdir mktemp printenv printf readlink realpath grealpath rmdir shuf tsort unexpand
55
# spell-checker:ignore (jq) deps startswith
66

7-
# Use GNU version for realpath on *BSD
8-
case "$OSTYPE" in
9-
*bsd*)
10-
REALPATH="grealpath"
11-
;;
12-
*)
13-
REALPATH="realpath"
14-
;;
15-
esac
7+
# Use GNU version for realpath
8+
REALPATH=$(command -v grealpath||command -v realpath)
169

1710
ME="${0}"
1811
ME_dir="$(dirname -- "${ME}")"

0 commit comments

Comments
 (0)