diff options
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" } |