forked from Shinonome/dots-hyprland
Minor update about git_submodule()
This commit is contained in:
@@ -292,8 +292,9 @@ function check_disk_space() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function auto_get_git_submodule(){
|
function auto_update_git_submodule(){
|
||||||
if git submodule status --recursive | grep -E '^[+-U]';then
|
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
|
x git submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ function auto_backup_configs(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
showfun auto_get_git_submodule
|
showfun auto_update_git_submodule
|
||||||
v auto_get_git_submodule
|
v auto_update_git_submodule
|
||||||
|
|
||||||
# Backup
|
# Backup
|
||||||
if [[ ! "${SKIP_BACKUP}" == true ]]; then auto_backup_configs; fi
|
if [[ ! "${SKIP_BACKUP}" == true ]]; then auto_backup_configs; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user