summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Lee <john.lee@algorand.com>2020-06-11 16:52:50 -0400
committerGitHub <noreply@github.com>2020-06-11 16:52:50 -0400
commit7b6d4d4773d353ae74efa46c6f750386e6ef0c9c (patch)
tree932cd4119ccce96483b3d7462f48a5af4c3e71b3
parent24a9d2f98d913554ae6bee0fa113ce20ea5707db (diff)
Bugfix - don't use output for error detection (#1162)v2.0.7-stable
Fix bug in configure_dev-deps.sh - was using output for error checking instead of last exit code.
-rwxr-xr-xscripts/configure_dev-deps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/configure_dev-deps.sh b/scripts/configure_dev-deps.sh
index 52650e526..59083ed00 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
}