🚧 honor SOURCE_DATE_EPOCH

ref: 6e50a3024c
This commit is contained in:
Vladislav Nepogodin committed 2023-03-01 01:56:23 +04:00
1 parent 99de435919
commit 385ecd18cc
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -95,5 +95,10 @@ sign_with_key() {
msg2 "signing [%s] with key %s" "${1##*/}" "${GPGKEY}"
[[ -e "$1".sig ]] && rm "$1".sig
gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"
local SIGNWITHKEY=()
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY=(-u "${GPGKEY}")
fi
gpg --detach-sign --use-agent "${SIGNWITHKEY[@]}" "$1"
}