fail on any error in link.sh