We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9887a3c commit e1bd47dCopy full SHA for e1bd47d
util/show-utils.sh
@@ -4,15 +4,8 @@
4
# spell-checker:ignore (utils) cksum coreutils dircolors hashsum mkdir mktemp printenv printf readlink realpath grealpath rmdir shuf tsort unexpand
5
# spell-checker:ignore (jq) deps startswith
6
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
+# Use GNU version for realpath
+REALPATH=$(command -v grealpath||command -v realpath)
16
17
ME="${0}"
18
ME_dir="$(dirname -- "${ME}")"
0 commit comments