Merge pull request #3 from cirrax/fix_non_initialized

make echo_info work if no tlsa is configured
This commit is contained in:
MrMabulous
2022-02-08 17:37:59 +01:00
committed by GitHub

View File

@@ -37,6 +37,10 @@
# address: info@mabulous.com # address: info@mabulous.com
# #
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/timestamping"
TSA0_URL=$(git config timestamping.tsa0.url) TSA0_URL=$(git config timestamping.tsa0.url)
if [ -z "$TSA0_URL" ]; then if [ -z "$TSA0_URL" ]; then
# Do nothing if TSA0 has not been configured. # Do nothing if TSA0 has not been configured.
@@ -44,10 +48,6 @@ if [ -z "$TSA0_URL" ]; then
exit 0 exit 0
fi fi
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/timestamping"
extended_exit_trap() { extended_exit_trap() {
local EXIT_CODE="$?" local EXIT_CODE="$?"
log "extended_exit_trap $EXIT_CODE" log "extended_exit_trap $EXIT_CODE"