aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-10-04 10:47:25 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-10-04 10:47:25 +0000
commit844044242020223e521ca016172c8e1dc0455e90 (patch)
tree4ccfd245a4d1603c63d222e28b9b553c717e42a5 /kiss
parent71e8c40c90cac0403890f65ef4e4ce3da2c1e162 (diff)
downloadcpt-844044242020223e521ca016172c8e1dc0455e90.tar.gz
kiss: display signed repositories
FossilOrigin-Name: 5e05cf8ffd5b92d3686ba65b318c566efec1b453c190cde49228cf1c501d9ba8
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss17
1 files changed, 13 insertions, 4 deletions
diff --git a/kiss b/kiss
index 4dcb763..d74fa0d 100755
--- a/kiss
+++ b/kiss
@@ -26,7 +26,7 @@ log() {
# '$((${#1}%5+1))': Color the package name based on its length.
# '${2:+[m}': If the 2nd argument exists, reset text formatting.
printf '\033[1;33m%s \033[m%s\033[m %s\n' \
- "${3:-->}" "${2:+[1;3$((${#1}%5+1))m}$1${2:+}" "$2"
+ "${3:-->}" "${2:+}$1${2:+}" "$2"
}
die() {
@@ -751,19 +751,28 @@ pkg_updates() {
cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||:
[ -d .git ] || {
- log "$repo" "Not a git repository, skipping"
+ log "$repo" " "
+ printf '%s\n' "Not a git repository, skipping."
continue
}
[ "$(git remote 2>/dev/null)" ] || {
- log "$repo" "No remote, skipping"
+ log "$repo" " "
+ printf '%s\n' "No remote, skipping."
continue
}
contains "$repos" "$PWD" || {
repos="$repos $PWD "
- log "$PWD" "Updating repository"
+ # Display a tick if signing is enabled for this
+ # repository.
+ case $(git config merge.verifySignatures) in
+ true) signed='[signed ✓]' ;;
+ *) signed= ;;
+ esac
+
+ log "$PWD" "$signed "
if [ -w "$PWD" ]; then
git fetch