Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Change mktemp pattern #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function _md5() {
}

# Set up a temp file.
TEMPFILE=$(mktemp /tmp/${0##*/}.XXXX)
TEMPFILE=$(mktemp /tmp/${0##*/}.XXXXXX)

# Set up the release directory. Copy things into the directory so
# we can alter them without messing with stuff that is under source control.
Expand Down
2 changes: 1 addition & 1 deletion util/generate-nagios-config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
set -u

PRJ="Percona Monitoring Plugins"
TEMP=$(mktemp "/tmp/${0##*/}-nagios-setup.XXXX")
TEMP=$(mktemp "/tmp/${0##*/}-nagios-setup.XXXXXX")
trap 'rm -rf "${TEMP}" >/dev/null 2>&1' EXIT
read -e -p "Configuration file prefix to use [/etc/nagios/objects]: " DIR
DIR="${DIR:-/etc/nagios/objects}"
Expand Down