Skip to content

Commit a65f01c

Browse files
committed
Update main.sh
1 parent 95c1759 commit a65f01c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,13 @@ fatal() {
298298
local -i thisFuncLine=$((LINENO - 1))
299299

300300
local -a Stack=()
301+
echo "Currently running as: $0 (PID $$)"
302+
echo "Shell name from /proc/$$/exe: $(readlink /proc/$$/exe)"
303+
shopt -o posix # This will output 'posix on' or 'posix off'
304+
set -x # Turn on debugging output for the next line
301305
readarray -t Stack < <(get_system_info)
302306
Stack+=("")
303-
307+
set +x
304308
local StackSize=${#FUNCNAME[@]}
305309
local -i FrameNumberLength=${#StackSize}
306310
local NoFile="<nofile>"

0 commit comments

Comments
 (0)