mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 21:35:00 +00:00
Add default OPT_ERR and fix default OPT_TMPDIR.
This commit is contained in:
@@ -28,6 +28,7 @@ set -u
|
||||
# sub will be scoped locally.
|
||||
declare -a ARGV # non-option args (probably input files)
|
||||
declare EXT_ARGV # everything after -- (args for an external command)
|
||||
OPT_ERR=${OPT_ERR:""}
|
||||
|
||||
# Sub: usage
|
||||
# Print usage (--help) and list the program's options.
|
||||
|
@@ -25,7 +25,7 @@ set -u
|
||||
|
||||
# Global variables.
|
||||
TMPDIR=""
|
||||
OPT_TMPDIR={OPT_TMPDIR:""}
|
||||
OPT_TMPDIR=${OPT_TMPDIR:""}
|
||||
|
||||
# Sub: set_TMPDIR
|
||||
# Create a secure tmpdir and set TMPDIR.
|
||||
|
Reference in New Issue
Block a user