Skip to content

Commit

Permalink
Bugfix - don't use output for error detection (algorand#1162)
Browse files Browse the repository at this point in the history
Fix bug in configure_dev-deps.sh - was using output for error checking instead of last exit code.
  • Loading branch information
onetechnical authored Jun 11, 2020
1 parent 24a9d2f commit 7b6d4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/configure_dev-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7b6d4d4

Please sign in to comment.