diff --git a/scripts/configure_dev-deps.sh b/scripts/configure_dev-deps.sh index 52650e5267..59083ed004 100755 --- a/scripts/configure_dev-deps.sh +++ b/scripts/configure_dev-deps.sh @@ -20,8 +20,8 @@ function install_go_module { else OUTPUT=$(cd && GO111MODULE=on go get "$1@${VERSION}" 2>&1) fi - if [ "${OUTPUT}" != "" ]; then - echo "error: executing \"go get -u $1\" failed : ${OUTPUT}" + if [ $? != 0 ]; then + echo "error: executing \"go get $1\" failed : ${OUTPUT}" exit 1 fi }