From 5bf10113da9d4e23dff2d0c827aa1ffd44d6c0b6 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 25 Jun 2021 08:44:26 +0900 Subject: [PATCH] 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. --- include/log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3