aboutsummaryrefslogtreecommitdiff
path: root/util/updatepo.sh
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-10-25 21:56:25 +0200
committerrubenwardy <rw@rubenwardy.com>2021-10-31 22:32:48 +0000
commitea1396f85693ee1f752219d91adcacb32041fc84 (patch)
tree0410299bcc60e11f35d38518f7900560557dc689 /util/updatepo.sh
parent4114e3047bd2cc975d829f24d73991650817ad66 (diff)
downloadminetest-ea1396f85693ee1f752219d91adcacb32041fc84.tar.xz
Replace uses of which(1) with command -v
Diffstat (limited to 'util/updatepo.sh')
-rwxr-xr-xutil/updatepo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/updatepo.sh b/util/updatepo.sh
index dbcb16fde..070a44be6 100755
--- a/util/updatepo.sh
+++ b/util/updatepo.sh
@@ -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.