chore: update directory structure for gitconfig files

This commit is contained in:
2025-06-23 09:42:47 +02:00
parent 82ee9bda0a
commit 480b57f156
5 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
CONFIG_DIR="$DOTFILES_INSTALL_DIR/.gitconfig.d/var"
set -e
CONFIG_DIR="$DOTFILES_INSTALL_DIR/gitconfig.d/var"
echo
echo "[+] Generating Gitconfig"
@ -8,7 +10,7 @@ echo
rm -f "$HOME/.gitconfig"
cp "$DOTFILES_INSTALL_DIR/.gitconfig.d/base.gitconfig" "$HOME/.gitconfig"
cp "$DOTFILES_INSTALL_DIR/gitconfig.d/base.gitconfig" "$HOME/.gitconfig"
for config in "$CONFIG_DIR"/*.gitconfig; do
[ -e "$config" ] || continue