[odrbin] git-wtclone: change GITDIRS default value

This commit is contained in:
odrling 2023-11-25 00:49:09 +01:00
parent 6e726c78d4
commit cc195360fd
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

View file

@ -3,7 +3,8 @@ url="$1"
name="$(basename "$url" .git)"
worktree="$2"
[ -z "$worktree" ] && worktree="$name"
[ -z "$GITDIRS" ] && GITDIRS="$HOME/gitdirs"
[ -z "$GITDIRS" ] && GITDIRS="$HOME/git/.gitdirs"
mkdir -p $GITDIRS
if [ -d "$GITDIRS/$name.git" ]; then
GIT_DIR="$GITDIRS/$name.git"