aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-01-14 17:54:55 +0100
committerFederico Angelilli <code@fedang.net>2024-01-14 17:54:55 +0100
commitdc3d7f95d9fdc2bf58ef9f9552ff26a2a73d1d47 (patch)
tree176e897fe9b4e606a49e8d9a5f37e9c669781f3f
parent1976a50de46d73cf91844ba59d47d24c9c8385ab (diff)
Minor fixes
-rwxr-xr-xcrypt.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypt.sh b/crypt.sh
index 0b871c3..9d9c250 100755
--- a/crypt.sh
+++ b/crypt.sh
@@ -727,6 +727,8 @@ cmd_list() {
tree -f --noreport -l "$path" "${args[@]}" -I '*.sig' | tail -n +2 | while IFS='' read -r line; do _cmd_list_fmt "$line"; done | \
column -t -s$'\t' | sed 's/\v/\t\t/' # Make pretty columns
else
+ [[ $CLOSED -eq 1 ]] && return
+
local tmp=$(find "$path" -path '*/.git' -prune -o -path '*/.extensions' -prune -o -iname '*.gpg' -print | \
sed -e "s~^$path\/*~~" | sort | while IFS='' read -r line; do \
local i=$(find_entry "$line"); echo "${line%.gpg} ${entries_name[$i]} ${line%.${entries_ext[$i]}.gpg}"; done)
@@ -826,9 +828,9 @@ cmd_sign() {
printf "Signing with the keys:\n$(_color white,bold)%s$(_color reset)\n\n" "$CRYPT_SIGNING_KEY"
for f in "${files[@]}"; do
git_prep "$f.sig"
- gpg_sign "$f" && echo "$(_color green)$f signed successfully$(_color reset)"
+ gpg_sign "$f" && echo "$(_color green)${f#$CRYPT_PATH/} signed successfully$(_color reset)"
git -C "$INNER_GIT_DIR" add "$f" # update file
- git_track "$f.sig" "Signing \`$f\` with $CRYPT_SIGNING_KEY."
+ git_track "$f.sig" "Signing \`${f#$CRYPT_PATH/}\` with $CRYPT_SIGNING_KEY."
done
fi
}