Add environment variable sorting to crash handler
This commit is contained in:
parent
128a6487cb
commit
b417d8f415
1 changed files with 16 additions and 2 deletions
18
bashutils.sh
18
bashutils.sh
|
@ -95,10 +95,24 @@ Issuer
|
|||
-> Message: ${*}
|
||||
|
||||
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)
|
||||
$(
|
||||
if [ -f "/etc/os-release" ]; then
|
||||
# /etc/os-release file is likely
|
||||
# already sorted so don't sort here
|
||||
cat "/etc/os-release" | while read -r line; do
|
||||
echo " -> ${line}"
|
||||
done
|
||||
else
|
||||
echo "/etc/os-release does not exist"
|
||||
fi
|
||||
)
|
||||
|
||||
Environment
|
||||
$(env | while read -r line; do echo " -> ${line}"; done)
|
||||
$(
|
||||
env | sort - | 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)
|
||||
|
|
Loading…
Reference in a new issue