mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Minor update about git_submodule()
This commit is contained in:
@@ -292,8 +292,9 @@ function check_disk_space() {
|
||||
return 0
|
||||
}
|
||||
|
||||
function auto_get_git_submodule(){
|
||||
function auto_update_git_submodule(){
|
||||
if git submodule status --recursive | grep -E '^[+-U]';then
|
||||
# Note: `git pull --recurse-submodules` cannot substitute `git submodule update --init --recursive` cuz it does not init a submodule when needed.
|
||||
x git submodule update --init --recursive
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ function auto_backup_configs(){
|
||||
}
|
||||
|
||||
#####################################################################################
|
||||
showfun auto_get_git_submodule
|
||||
v auto_get_git_submodule
|
||||
showfun auto_update_git_submodule
|
||||
v auto_update_git_submodule
|
||||
|
||||
# Backup
|
||||
if [[ ! "${SKIP_BACKUP}" == true ]]; then auto_backup_configs; fi
|
||||
|
||||
Reference in New Issue
Block a user