Skip to content

Commit

Permalink
fix #451: command -v is more portable than which because it is a …
Browse files Browse the repository at this point in the history
…built-in shell feature, and `which` is an external utility that is not necessarily installed
  • Loading branch information
yihui committed Oct 22, 2024
1 parent 6743ffc commit 629c81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install-bin-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ perl -mFile::Find /dev/null ||

cd ${TMPDIR:-/tmp}

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

0 comments on commit 629c81e

Please sign in to comment.