On 09/16/11 00:27, Mikolaj Kucharski wrote: > -@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL} > +@exec-update if test -f ${MODAPACHE_FINAL}; then cp -fp %D/%F > ${MODAPACHE_FINAL}; fi
Ports is not my thing, but sh scripting is. I'd suggest using -@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL} +@exec-update test ! -f ${MODAPACHE_FINAL} || cp -fp %D/%F ${MODAPACHE_FINAL} instead, which apart from being smaller also has the benefit of failing if the cp(1) fails. /Alexander