kiss: remove now pointless subshell

This commit is contained in:
Dylan Araps 2021-07-02 11:24:14 +00:00
parent dde00196d8
commit a5ac4d3dad
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

15
kiss
View File

@ -1388,17 +1388,14 @@ pkg_updates() {
# This prevents 'git' from changing the original
# ownership of files and directories in the rare
# case that the repository is owned by a 3rd user.
(
file_owner "$PWD"
file_owner "$PWD"
# We're in a repository which is owned by a 3rd
# user. Not root or the current user.
[ "$user" = root ] ||
log "Dropping to $user for pull"
# We're in a repository which is owned by a 3rd
# user. Not root or the current user.
[ "$user" = root ] || log "Dropping to $user for pull"
as_root git pull
as_root git submodule update --remote --init -f
)
as_root git pull
as_root git submodule update --remote --init -f
fi
}
;;