misc: nit

This commit is contained in:
Dylan Araps 2021-07-24 22:37:27 +03:00
parent 054761905e
commit be67ae5eb2
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

7
kiss
View File

@ -1543,8 +1543,6 @@ pkg_update() {
# Update each repository in '$KISS_PATH'. # Update each repository in '$KISS_PATH'.
for repo do for repo do
repo_type=null
if git -C "$repo" remote >/dev/null 2>&1; then if git -C "$repo" remote >/dev/null 2>&1; then
repo_type=git repo_type=git
@ -1554,6 +1552,9 @@ pkg_update() {
elif ! [ -d "$repo" ]; then elif ! [ -d "$repo" ]; then
continue continue
else
unset repo_type
fi fi
pkg_update_repo pkg_update_repo
@ -1568,7 +1569,7 @@ pkg_update_repo() {
contains "$repos" "$PWD" || { contains "$repos" "$PWD" || {
repos="$repos $PWD" repos="$repos $PWD"
log "Updating" "$PWD" log "$PWD" ""
am_owner "$PWD" || { am_owner "$PWD" || {
printf 'Need "%s" to update\n' "$user" printf 'Need "%s" to update\n' "$user"