„Build/synOTR.sh“ ändern

This commit is contained in:
Stephan 2020-08-22 14:18:19 +00:00
parent bd746ecc05
commit a08d72b21c

View file

@ -293,6 +293,20 @@
#################################################################################################
set -eE -o functrace
failure()
{
# this function show error line
# --------------------------------------------------------------
# https://unix.stackexchange.com/questions/462156/how-do-i-find-the-line-number-in-bash-when-an-error-occured
local lineno=$1
local msg=$2
echo "Failed at $lineno: $msg"
}
trap 'failure ${LINENO} "$BASH_COMMAND"' ERR
sec_to_time()
{
#########################################################################################