Skip to content

Commit 4a3fd71

Browse files
Add submodule update command in dotfiles update script for improved configuration management
1 parent 6aaea67 commit 4a3fd71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dotfiles-update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ _dotfiles_update_check() {
3434

3535
printf '\033[1;33m[dotfiles]\033[0m %s new commit(s) available — pulling...\n' "$_df_behind"
3636
if git -C "$_df_dir" pull --ff-only --quiet 2>/dev/null; then
37+
git -C "$_df_dir" submodule update --init --recursive --quiet 2>/dev/null || true
3738
printf '\033[1;32m[dotfiles]\033[0m Pulled successfully.\n'
3839
printf '\033[1;33m[dotfiles]\033[0m Run \033[1mstow-all.sh\033[0m to re-stow and apply changes.\n'
3940
else

0 commit comments

Comments
 (0)