diff options
Diffstat (limited to 'pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in')
-rw-r--r-- | pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in b/pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in index b2e132797ad..d5881356b43 100644 --- a/pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in +++ b/pkgtools/tinderbox-dragonfly/files/bulk_hook_1.sh.in @@ -26,9 +26,11 @@ if [ -n "${QLIST}" ]; then ${PB}/scripts/tc rmBuildPortsQueueEntry -b ${BUILD} -d ${PORTDIR} fi -SPORTDIR=`echo ${PORTDIR} | sed "s|/|\\\\\\/|"` -sed "/^${SPORTDIR}\$/d" ${BULKTMP}/bulk_${BUILD}.queue > ${BULKTMP}/bulk_${BUILD}.queue.tmp -mv ${BULKTMP}/bulk_${BUILD}.queue.tmp ${BULKTMP}/bulk_${BUILD}.queue +SPORTDIR=`echo ${PORTDIR} | sed "s|/|\\\\\\/|g"` +if [ -n "${SPORTDIR}" ]; then + sed "/^${SPORTDIR}\$/d" ${BULKTMP}/bulk_${BUILD}.queue > ${BULKTMP}/bulk_${BUILD}.queue.tmp + mv ${BULKTMP}/bulk_${BUILD}.queue.tmp ${BULKTMP}/bulk_${BUILD}.queue +fi if [ -f ${BULKTMP}/bulk_${BUILD}.active ]; then ACTIVEPORT=`cat ${BULKTMP}/bulk_${BUILD}.active` |