kiss: Added submodule support to repositories.

This commit is contained in:
Dylan Araps 2020-05-19 13:22:53 +03:00
parent 278de80b25
commit 622f3617a8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 0 deletions

2
kiss
View File

@ -1341,6 +1341,7 @@ pkg_updates() {
if [ -w "$PWD" ] && [ "$uid" != 0 ]; then
git fetch
git merge
git submodule update --remote --init -f
else
[ "$uid" = 0 ] || log "$PWD" "Need root to update"
@ -1365,6 +1366,7 @@ pkg_updates() {
# properly quoted as the command passed to it must
# be a string... This sets quotes where needed.
git_cmd="git fetch && git merge"
git_cmd="$git_cmd && git submodule update --remote --init -f"
case $su in *su) git_cmd="'$git_cmd'"; esac
# Spawn a subshell to run multiple commands as