Skip to content

Commit 24e2c94

Browse files
committed
Fix missing -l option message
1 parent c03a9f7 commit 24e2c94

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

public/awrdump.rwl

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010

1111
# Dump awr data to a directory and potentially cloud bucket
1212

13-
# options to this script
14-
$longoption:file-count=1
15-
1613
# If we didn't connect, don't do anything
17-
if oraerror is not null and oraerror then
14+
$if not defined(default database) $then
15+
writeline stderr, "Missing or incorrect -l option; use -h to get help";
1816
exit 1;
19-
end if;
17+
$endif
2018

2119
integer dbid;
2220

public/awreport.rwl

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# Generate awr reports or list awr snapshots available
1414

1515
# If we didn't connect, don't do anything
16-
if oraerror is not null and oraerror then
16+
$if not defined(default database) $then
17+
writeline stderr, "Missing or incorrect -l option; use -h to get help";
1718
exit 1;
18-
end if;
19+
$endif
1920

2021
integer dbid;
2122
integer instance;

0 commit comments

Comments
 (0)