Skip to content

Commit

Permalink
Fix missing -l option message
Browse files Browse the repository at this point in the history
  • Loading branch information
bengsig committed Nov 24, 2022
1 parent c03a9f7 commit 24e2c94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions public/awrdump.rwl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@

# Dump awr data to a directory and potentially cloud bucket

# options to this script
$longoption:file-count=1

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

integer dbid;

Expand Down
5 changes: 3 additions & 2 deletions public/awreport.rwl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# Generate awr reports or list awr snapshots available

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

integer dbid;
integer instance;
Expand Down

0 comments on commit 24e2c94

Please sign in to comment.