1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: cleanup update messages

This commit is contained in:
Dylan Araps 2020-02-06 14:06:51 +02:00
parent 4ff9c5cc2e
commit 1b3260b891
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -1047,9 +1047,8 @@ pkg_updates() {
# Update each repository in '$KISS_PATH'. It is assumed that # Update each repository in '$KISS_PATH'. It is assumed that
# each repository is 'git' tracked. # each repository is 'git' tracked.
for repo; do for repo; do
cd "$repo"
# Go to the root of the repository (if it exists). # Go to the root of the repository (if it exists).
cd "$repo"
cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||: cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||:
[ -d .git ] || { [ -d .git ] || {
@ -1070,7 +1069,7 @@ pkg_updates() {
# Display a tick if signing is enabled for this # Display a tick if signing is enabled for this
# repository. # repository.
case $(git config merge.verifySignatures) in case $(git config merge.verifySignatures) in
true) log "$PWD" "[signed ✓] " ;; true) log "$PWD" "[signed ✓] " ;;
*) log "$PWD" " " ;; *) log "$PWD" " " ;;
esac esac