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