Permalink
Browse files

Only need to create WATCHDIR in 'daemon' since b246ee6.

Fixes #548
  • Loading branch information...
bdrewery committed Nov 14, 2017
1 parent 1d0222b commit a3916a9d121e595fdb51b0941d16ffede35bb0d3
Showing with 4 additions and 2 deletions.
  1. +0 −2 src/share/poudriere/common.sh
  2. +4 −0 src/share/poudriere/daemon.sh
@@ -7389,8 +7389,6 @@ fi
TIME_START=$(clock -monotonic)
EPOCH_START=$(clock -epoch)
[ -d ${WATCHDIR} ] || mkdir -p ${WATCHDIR}
. ${SCRIPTPREFIX}/include/util.sh
. ${SCRIPTPREFIX}/include/colors.sh
. ${SCRIPTPREFIX}/include/display.sh
@@ -60,6 +60,10 @@ KILL=0
. ${SCRIPTPREFIX}/common.sh
if [ ! -d ${WATCHDIR} ]; then
mkdir -p ${WATCHDIR} || err 1 "Unable to create needed directory ${WATCHDIR}"
fi
if [ -z "${DAEMON_ARGS_PARSED}" ]; then
while getopts "knp:" FLAG; do
case "${FLAG}" in

0 comments on commit a3916a9

Please sign in to comment.