From: Matthias Kruk Date: Thu, 24 Jun 2021 23:44:26 +0000 (+0900) Subject: include/log: Fix indentation in log_stacktrace() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=5bf10113da9d4e23dff2d0c827aa1ffd44d6c0b6;p=toolbox include/log: Fix indentation in log_stacktrace() Stacktraces printed by log_stacktrace() are not indented correctly because of a typo in the statement that increases the indentation. This commit fixes the typo so that lines are indented correctly. --- diff --git a/include/log.sh b/include/log.sh index 9d678ba..f547299 100644 --- a/include/log.sh +++ b/include/log.sh @@ -124,7 +124,7 @@ log_stacktrace() { for (( i = "${#FUNCNAME[@]}"; i > 1; )); do ((i--)) echo "$indent${BASH_SOURCE[$i]}:${BASH_LINENO[$i]} ${FUNCNAME[$i]}" - ident+=" " + indent+=" " done return 0