Clean up artifacts variables in hack scripts

This commit is contained in:
Christoph Blecker
2018-12-19 15:17:13 -08:00
parent f2d7eed675
commit b19fb0a77e
8 changed files with 30 additions and 18 deletions

View File

@@ -70,8 +70,8 @@ kube::etcd::start() {
# Start etcd
ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)}
if [[ -d "${ARTIFACTS_DIR:-}" ]]; then
ETCD_LOGFILE="${ARTIFACTS_DIR}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$"
if [[ -d "${ARTIFACTS:-}" ]]; then
ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$"
else
ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
fi