about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-06-02 15:43:06 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-06-02 15:43:06 +0200
commit33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b (patch)
treeceb6384983cbdf0cdb0d5f25abfa7772cd620cbe /xlocate
parent2fc240183ac779be3925b23392a81a6d1b4ed669 (diff)
downloadxtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.tar.gz
xtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.tar.xz
xtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.zip
xlocate: create $XLOCATE_GIT basedir
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlocate b/xlocate
index 7e118b9..255ca8f 100755
--- a/xlocate
+++ b/xlocate
@@ -40,6 +40,7 @@ xupdategit() {
 	git repack -ad
 	rm -rf "$XLOCATE_GIT" .git/COMMIT_EDITMSG .git/description \
 		.git/index .git/hooks .git/logs
+	[ -n "${XLOCATE_GIT%/*}" ] && mkdir -p "${XLOCATE_GIT%/*}"
 	mv .git "$XLOCATE_GIT"
 	rm -rf "$DIR"
 }