Skip to content

Commit 629c81e

Browse files
committed
fix #451: command -v is more portable than which because it is a built-in shell feature, and which is an external utility that is not necessarily installed
1 parent 6743ffc commit 629c81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/install-bin-unix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ perl -mFile::Find /dev/null ||
77

88
cd ${TMPDIR:-/tmp}
99

10-
[ -z $(which tlmgr) ] || TL_INSTALLED_PKGS=$(tlmgr info --list --only-installed --data name | tr '\n' ' ')
10+
[ -z $(command -v tlmgr) ] || TL_INSTALLED_PKGS=$(tlmgr info --list --only-installed --data name | tr '\n' ' ')
1111
[ -z "$TL_INSTALLED_PKGS" ] ||
1212
echo "If you want to reinstall currently installed packages, use this command after the TinyTeX installation is done:
1313

0 commit comments

Comments
 (0)