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:
parent
4114e3047b
commit
ea1396f856
4 changed files with 8 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue