./show-busy-java-threads: line 209: $1: unbound variable
hlzhang opened this issue · 2 comments
hlzhang commented
I added 'set -exu' at beginning of show-busy-java-threads script and got error as title.
That line is
[ -z "$1" ] && update_count=1 || update_count=${2:-0}
Alpine 3.9 with tools.
apk add --update bc perf procps strace aria2 bash bzip2 ca-certificates curl git gnupg httpie jq nano openssh-client openssl shadow sudo tar unzip vim wget xz zip
oldratlee commented
Not support -eu
option yet.
- if you want debug, just add
set -x
- if you want embed this tool to your script, invoke command instead embed source code.
hlzhang commented
Thanks!