Skip to content

Commit 44ae621

Browse files
oech3cakebaker
authored andcommitted
show-utils.sh use GNU realpath
1 parent 9887a3c commit 44ae621

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

util/show-utils.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
# spell-checker:ignore (jq) deps startswith
66

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

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

0 commit comments

Comments
 (0)