diff --git a/bin/pt-stalk b/bin/pt-stalk index 1b446954..3de794d7 100755 --- a/bin/pt-stalk +++ b/bin/pt-stalk @@ -267,7 +267,7 @@ set -u TMPDIR="" mk_tmpdir() { - local dir=${1:-""} + local dir="${1:-""}" if [ -n "$dir" ]; then if [ ! -d "$dir" ]; then @@ -284,7 +284,7 @@ mk_tmpdir() { rm_tmpdir() { if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then - rm -rf $TMPDIR + rm -rf "$TMPDIR" fi TMPDIR="" } @@ -1176,7 +1176,7 @@ Print all output to this file when daemonized. type: string -Match pattern for C L<"--function">. +Match pattern for C L<"--function">. =item --notify-by-email diff --git a/lib/bash/tmpdir.sh b/lib/bash/tmpdir.sh index d1b9e1b7..fdd6c8f3 100644 --- a/lib/bash/tmpdir.sh +++ b/lib/bash/tmpdir.sh @@ -35,7 +35,7 @@ TMPDIR="" # Set Global Variables: # TMPDIR - Absolute path of secure temp directory. mk_tmpdir() { - local dir=${1:-""} + local dir="${1:-""}" if [ -n "$dir" ]; then if [ ! -d "$dir" ]; then @@ -60,7 +60,7 @@ mk_tmpdir() { # TMPDIR - Set to "". rm_tmpdir() { if [ -n "$TMPDIR" ] && [ -d "$TMPDIR" ]; then - rm -rf $TMPDIR + rm -rf "$TMPDIR" fi TMPDIR="" }