mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
Quote in tmpdir.sh and fix typo in doc.
This commit is contained in:
@@ -267,7 +267,7 @@ set -u
|
|||||||
TMPDIR=""
|
TMPDIR=""
|
||||||
|
|
||||||
mk_tmpdir() {
|
mk_tmpdir() {
|
||||||
local dir=${1:-""}
|
local dir="${1:-""}"
|
||||||
|
|
||||||
if [ -n "$dir" ]; then
|
if [ -n "$dir" ]; then
|
||||||
if [ ! -d "$dir" ]; then
|
if [ ! -d "$dir" ]; then
|
||||||
@@ -284,7 +284,7 @@ mk_tmpdir() {
|
|||||||
|
|
||||||
rm_tmpdir() {
|
rm_tmpdir() {
|
||||||
if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then
|
if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then
|
||||||
rm -rf $TMPDIR
|
rm -rf "$TMPDIR"
|
||||||
fi
|
fi
|
||||||
TMPDIR=""
|
TMPDIR=""
|
||||||
}
|
}
|
||||||
@@ -1176,7 +1176,7 @@ Print all output to this file when daemonized.
|
|||||||
|
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
Match pattern for C<processles> L<"--function">.
|
Match pattern for C<processlist> L<"--function">.
|
||||||
|
|
||||||
=item --notify-by-email
|
=item --notify-by-email
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ TMPDIR=""
|
|||||||
# Set Global Variables:
|
# Set Global Variables:
|
||||||
# TMPDIR - Absolute path of secure temp directory.
|
# TMPDIR - Absolute path of secure temp directory.
|
||||||
mk_tmpdir() {
|
mk_tmpdir() {
|
||||||
local dir=${1:-""}
|
local dir="${1:-""}"
|
||||||
|
|
||||||
if [ -n "$dir" ]; then
|
if [ -n "$dir" ]; then
|
||||||
if [ ! -d "$dir" ]; then
|
if [ ! -d "$dir" ]; then
|
||||||
@@ -60,7 +60,7 @@ mk_tmpdir() {
|
|||||||
# TMPDIR - Set to "".
|
# TMPDIR - Set to "".
|
||||||
rm_tmpdir() {
|
rm_tmpdir() {
|
||||||
if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then
|
if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then
|
||||||
rm -rf $TMPDIR
|
rm -rf "$TMPDIR"
|
||||||
fi
|
fi
|
||||||
TMPDIR=""
|
TMPDIR=""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user