@cryptotaxi247 / netdata-1 / commits / f71c7a3a5

Check for failed protobuf configure or make (#11450)

* check for failed protobuf configure or make * revert error instead of warn

Emmanuel Vasilakis committed Aug 24, 2021 at 17:56 UTC f71c7a3a5b0fa74c7c1184e50b075fe28e5dff37
1 file changed +10 -5
netdata-installer.sh
+10 -5
@@ -738,11 +738,16 @@ build_protobuf() {
738 fi
739
740 pushd "${1}" > /dev/null || return 1
741 - run ${env_cmd} ./configure --disable-shared \
742 - --without-zlib \
743 - --disable-dependency-tracking \
744 - --with-pic || return 1
745 - run ${env_cmd} ${make} -j$(find_processors) || return 1
741 + if ! run ${env_cmd} ./configure --disable-shared --without-zlib --disable-dependency-tracking --with-pic; then
742 + popd > /dev/null || return 1
743 + return 1
744 + fi
745 +
746 + if ! run ${env_cmd} $make -j$(find_processors); then
747 + popd > /dev/null || return 1
748 + return 1
749 + fi
750 +
751 popd > /dev/null || return 1
752 }
753