summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-01-05 16:13:33 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-01-05 16:13:33 +0100
commit758df12b42f3b21e94fce605bd6f77269f55a0d4 (patch)
treededfd3dced2864a4f57841bf5de355092414972a
parent557809158760633bd09b6cbc206f3f6e0741abfc (diff)
downloadxtools-758df12b42f3b21e94fce605bd6f77269f55a0d4.tar.gz
xtools-758df12b42f3b21e94fce605bd6f77269f55a0d4.tar.xz
xtools-758df12b42f3b21e94fce605bd6f77269f55a0d4.zip
xlocate: use absolute path to realpath to avoid shell builtins.
-rwxr-xr-xxlocate2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlocate b/xlocate
index 2db7d72..162dbbd 100755
--- a/xlocate
+++ b/xlocate
@@ -21,7 +21,7 @@ xupdatedb() {
 xupdategit() {
 	set -e
 	DIR=$(mktemp -dt xlocate.XXXXXX)
-	DIR=$(realpath -e "$DIR")
+	DIR=$(/usr/bin/realpath -e "$DIR")
 	git init -q $DIR
 	cd $DIR
 	xbps-query -M -Ro '*' | $PROGRESS | awk '