diff options
-rwxr-xr-x | xlocate | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlocate b/xlocate index cbfbfe4..995bd58 100755 --- a/xlocate +++ b/xlocate @@ -50,6 +50,7 @@ xsyncgit() { if [ -d "$XLOCATE_GIT" ]; then git -C "$XLOCATE_GIT" fetch -u -f "$XLOCATE_REPO" master:master else + [ -n "${XLOCATE_GIT%/*}" ] && mkdir -p "${XLOCATE_GIT%/*}" git clone --bare "$XLOCATE_REPO" "$XLOCATE_GIT" fi } |