about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authorSolitudeSF <solitudesf@protonmail.com>2019-02-23 12:22:31 +0200
committerLeah Neukirchen <chneukirchen@gmail.com>2019-02-25 17:24:18 +0100
commit906a4c179a02a28fe8836830245619478c03a72d (patch)
tree06d1a542f772efa6505987281f7d2e92711993be /xlocate
parent47cc8368732bf204df245b0473b16a467f874801 (diff)
downloadxtools-906a4c179a02a28fe8836830245619478c03a72d.tar.gz
xtools-906a4c179a02a28fe8836830245619478c03a72d.tar.xz
xtools-906a4c179a02a28fe8836830245619478c03a72d.zip
xlocate: respect $XDG_CACHE_HOME v0.55
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlocate b/xlocate
index 6600a60..2282538 100755
--- a/xlocate
+++ b/xlocate
@@ -1,7 +1,8 @@
 #!/bin/sh
 # xlocate [-g | -S | PATTERN] - locate files in all XBPS packages
 
-: ${XLOCATE_GIT:=~/.cache/xlocate.git}
+: ${XDG_CACHE_HOME:=~/.cache}
+: ${XLOCATE_GIT:=$XDG_CACHE_HOME/xlocate.git}
 : ${XLOCATE_REPO:=https://alpha.de.repo.voidlinux.org/xlocate/xlocate.git}
 
 if command -v pv >/dev/null; then