From 128a6487cb5fe9449e0a733596651c4741b76855 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 17 Nov 2024 17:05:06 +0100 Subject: [PATCH] Fix variable handling in crash handler --- bashutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashutils.sh b/bashutils.sh index f131fb6..be98711 100755 --- a/bashutils.sh +++ b/bashutils.sh @@ -98,7 +98,7 @@ Operating system $(if [ -f "/etc/os-release" ]; then cat "/etc/os-release" | while read -r line; do echo " -> ${line}"; done; else echo "/etc/os-release does not exist"; fi) Environment -$(for line in $(env); do echo " -> ${line}"; done) +$(env | while read -r line; do echo " -> ${line}"; done) Stacktrace $(for index in $(seq 0 1000); do if [ -z "$(caller "${index}")" ]; then break; else echo " -> $(caller "${index}")"; fi; done)