[buildmod] non-zero exit code when file not found

Fixes #1226
Close #1227
This commit is contained in:
dgw
2016-01-03 22:41:38 -06:00
committed by Alexey Sokolov
parent c21e60ad7a
commit ed5eca4f74
+1
View File
@@ -55,6 +55,7 @@ do
if test ! -f "${FILE}"; then
echo "${ERROR} Building \"${MOD}\" for ZNC $VERSION... File not found"
exit 1
else
printf "Building \"${MOD}.so\" for ZNC $VERSION... "
if ${CXX} ${CXXFLAGS} ${INCLUDES} ${LDFLAGS} ${MODLINK} -o "${MOD}.so" "${FILE}" ${LIBS} ; then