Merge pull request #3 from cirrax/fix_non_initialized
make echo_info work if no tlsa is configured
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user