diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-02 15:43:06 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-02 15:43:06 +0200 |
commit | 33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b (patch) | |
tree | ceb6384983cbdf0cdb0d5f25abfa7772cd620cbe /xlocate | |
parent | 2fc240183ac779be3925b23392a81a6d1b4ed669 (diff) | |
download | xtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.tar.gz xtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.tar.xz xtools-33b3ebf5fa44c5e9edaaef1e15fe7618f1973a3b.zip |
xlocate: create $XLOCATE_GIT basedir
Diffstat (limited to 'xlocate')
-rwxr-xr-x | xlocate | 1 |
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" } |