mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-23 12:56:26 +00:00
14 lines
331 B
Bash
Executable File
14 lines
331 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pre-read-source-state hook for chezmoi
|
|
# This runs before chezmoi reads the source state
|
|
|
|
set -e
|
|
|
|
DOTFILES="${CHEZMOI_SOURCE_DIR:-$HOME/.local/share/chezmoi}"
|
|
|
|
# Update git submodules if they exist
|
|
if [ -d "$DOTFILES/.git" ]; then
|
|
cd "$DOTFILES"
|
|
git submodule update --init --recursive --quiet || true
|
|
fi
|