You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: show-busy-java-threads
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -190,12 +190,8 @@ use_ps=${use_ps:-false}
190
190
top_delay=${top_delay:-0.5}
191
191
192
192
if [ -n"$jstack_file_dir"-a-e"$jstack_file_dir" ];then
193
-
if [ !-d"$jstack_file_dir" ];then
194
-
usage 1 "$jstack_file_dir exists but is not a directory!"
195
-
fi
196
-
if [ !-w"$jstack_file_dir" ];then
197
-
usage 1 "$jstack_file_dir directory exists but is not writable!"
198
-
fi
193
+
[ !-d"$jstack_file_dir" ] && fatal "Error: $jstack_file_dir(specified by option -S, the dir for storing jstack output files) exists but is not a directory!"
194
+
[ !-w"$jstack_file_dir" ] && fatal "Error: directory $jstack_file_dir(specified by option -S, the dir for storing jstack output files) exists but is not writable!"
0 commit comments