diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index e428d68e1..c9e68e8bf 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -215,7 +215,7 @@ if [ "$DEBSIGN_KEYID" != "" ]; then DEBUILD="$DEBUILD -k$DEBSIGN_KEYID" fi $DEBUILD -if [ $? ]; then +if [ "$?" != "0" ]; then echo "Error status code is: $?" echo "Build failed."; exit $?;