1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Replace uses of which(1) with command -v

This commit is contained in:
sfan5 2021-10-25 21:56:25 +02:00 committed by rubenwardy
parent 4114e3047b
commit ea1396f856
4 changed files with 8 additions and 8 deletions

View file

@ -13,7 +13,7 @@ abort() {
# this script is. Relative paths are fine for us so we can just
# use the following trick (works both for manual invocations and for
# script found from PATH)
scriptisin="$(dirname "$(which "$0")")"
scriptisin="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# The script is executed from the parent of po/, which is also the
# parent of the script directory and of the src/ directory.