Merge "Use mktemp instead of tempfile in gate_hook.sh"

This commit is contained in:
Zuul 2018-09-21 22:06:58 +00:00 committed by Gerrit Code Review
commit 48a0d56e4b
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function load_rc_hook {
local hook="$1"
local tmpfile
local config
tmpfile=$(tempfile)
tmpfile=$(mktemp)
config=$(cat $GATE_HOOKS/$hook)
echo "[[local|localrc]]" > $tmpfile
$DSCONF setlc_raw $tmpfile "$config"
@ -44,7 +44,7 @@ function load_conf_hook {
# Tweak gate configuration for our rally scenarios
function load_rc_for_rally {
for file in $(ls $RALLY_EXTRA_DIR/*.setup); do
tmpfile=$(tempfile)
tmpfile=$(mktemp)
config=$(cat $file)
echo "[[local|localrc]]" > $tmpfile
$DSCONF setlc_raw $tmpfile "$config"