From 906a4c179a02a28fe8836830245619478c03a72d Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Sat, 23 Feb 2019 12:22:31 +0200 Subject: xlocate: respect $XDG_CACHE_HOME --- xlocate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlocate') 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 -- cgit 1.4.1