various indentation fixes

This commit is contained in:
Lance Vick 2023-03-29 13:54:37 -07:00
parent 20e73c7cec
commit f8427ccf2d
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 18 additions and 17 deletions

35
sig
View File

@ -340,8 +340,8 @@ verify(){
local -r ref=${3:-HEAD} local -r ref=${3:-HEAD}
local sig_count=0 seen_fps fp commit_sig tag_sigs note_sigs local sig_count=0 seen_fps fp commit_sig tag_sigs note_sigs
[ -d .git ] || [ -L .git ] || [ -f .git ] \ [ -d .git ] || [ -L .git ] || [ -f .git ] \
|| die "Error: This folder is not a git repository" || die "Error: This folder is not a git repository"
if [[ $(git diff --stat) != '' ]]; then if [[ $(git diff --stat) != '' ]]; then
die "Error: git tree is dirty" die "Error: git tree is dirty"
fi fi
@ -355,7 +355,7 @@ verify(){
fi fi
tag_sigs=$(verify_git_tags "$ref") && \ tag_sigs=$(verify_git_tags "$ref") && \
while IFS= read -r line; do while IFS= read -r line; do
IFS=':' read -r -a sig <<< "$line" IFS=':' read -r -a sig <<< "$line"
fp="${sig[1]}" fp="${sig[1]}"
uid="${sig[5]}" uid="${sig[5]}"
@ -366,7 +366,7 @@ verify(){
done <<< "$tag_sigs" done <<< "$tag_sigs"
note_sigs=$(verify_git_notes "$ref") && \ note_sigs=$(verify_git_notes "$ref") && \
while IFS= read -r line; do while IFS= read -r line; do
IFS=':' read -r -a sig <<< "$line" IFS=':' read -r -a sig <<< "$line"
fp="${sig[1]}" fp="${sig[1]}"
uid="${sig[5]}" uid="${sig[5]}"
@ -516,19 +516,20 @@ cmd_fetch() {
echo "Requested key is not in keyring. Trying keyservers..." echo "Requested key is not in keyring. Trying keyservers..."
for server in \ for server in \
ha.pool.sks-keyservers.net \ keys.openpgp.org \
hkp://keyserver.ubuntu.com:80 \ ha.pool.sks-keyservers.net \
hkp://p80.pool.sks-keyservers.net:80 \ hkp://keyserver.ubuntu.com:80 \
pgp.mit.edu \ hkp://p80.pool.sks-keyservers.net:80 \
; do pgp.mit.edu \
echo "Fetching key \"${fingerprint}\" from \"${server}\""; ; do
gpg \ echo "Fetching key \"${fingerprint}\" from \"${server}\"";
--recv-key \ gpg \
--keyserver "$server" \ --recv-key \
--keyserver-options timeout=10 \ --keyserver "$server" \
--recv-keys "${fingerprint}" \ --keyserver-options timeout=10 \
&& break --recv-keys "${fingerprint}" \
done && break
done
} }
cmd_add(){ cmd_add(){