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

Fixes #1226
Close #1227
This commit is contained in:
dgw authored and Alexey Sokolov committed 2016-01-07 20:58:09 +00:00
1 parent c21e60ad7a
commit ed5eca4f74
1 file changed
+1
+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