]> git.corax.cc Git - toolbox/commitdiff
include/log: Fix indentation in log_stacktrace()
authorMatthias Kruk <m@m10k.eu>
Thu, 24 Jun 2021 23:44:26 +0000 (08:44 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 24 Jun 2021 23:44:26 +0000 (08:44 +0900)
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

index 9d678baa07da4025b3c18426f52bd54ab6d88387..f547299c55f2809dd0af15fb3028c6b01a12d973 100644 (file)
@@ -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