build process is interrupted by an empty dependencies.txt
dependencies.txt
solution
[ -s dependencies.txt ] || exit 0 && xargs ...