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

kiss: nit

This commit is contained in:
Dylan Araps 2021-07-17 18:40:34 +03:00
parent 105f29fb9d
commit 0cdcdedfd5
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

10
kiss
View File

@ -1349,6 +1349,7 @@ pkg_installable() {
! [ -d "$sys_db/$dep" ] || continue ! [ -d "$sys_db/$dep" ] || continue
printf '%s %s\n' "$dep" "$dep_type" printf '%s %s\n' "$dep" "$dep_type"
set -- "$1" "$2" "$(($3 + 1))" set -- "$1" "$2" "$(($3 + 1))"
esac esac
done < "$2" done < "$2"
@ -1530,11 +1531,10 @@ pkg_update() {
# env: PWD is path to repository # env: PWD is path to repository
run_hook pre-update run_hook pre-update
# Display a tick if signing is enabled for this repository. # Display whether or not signature verification is enabled.
case $(git config merge.verifySignatures) in _sig=$(git config --get --default false merge.verifySignatures)
true) log "$PWD" "[signed] " ;;
*) log "$PWD" " " ;; log "$PWD" "[verify: $_sig]"
esac
if [ -w "$PWD" ] && [ "$uid" != 0 ]; then if [ -w "$PWD" ] && [ "$uid" != 0 ]; then
git pull git pull