Skip to content

Commit 7b6d4d4

Browse files
authored
Bugfix - don't use output for error detection (#1162)
Fix bug in configure_dev-deps.sh - was using output for error checking instead of last exit code.
1 parent 24a9d2f commit 7b6d4d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/configure_dev-deps.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function install_go_module {
2020
else
2121
OUTPUT=$(cd && GO111MODULE=on go get "$1@${VERSION}" 2>&1)
2222
fi
23-
if [ "${OUTPUT}" != "" ]; then
24-
echo "error: executing \"go get -u $1\" failed : ${OUTPUT}"
23+
if [ $? != 0 ]; then
24+
echo "error: executing \"go get $1\" failed : ${OUTPUT}"
2525
exit 1
2626
fi
2727
}

0 commit comments

Comments
 (0)