--- trunk/man-db/man-db.cron 2015/12/02 14:06:17 2730 +++ trunk/man-db/man-db.cron 2015/12/03 10:41:05 2731 @@ -19,9 +19,9 @@ # two man-db cron scripts get run close to each other to keep # them from stepping on each other's toes. The worst that will # happen is that they will temporarily corrupt the database -[ -f $LOCKFILE ] && exit 0 +[[ -f ${LOCKFILE} ]] && exit 0 -trap "{ rm -f ${LOCKFILE}; exit 255; }" EXIT +trap "{ rm -f ${LOCKFILE}; exit 0; }" EXIT touch ${LOCKFILE} # create/update the mandb database