Skip to content
Snippets Groups Projects
Commit 2b440e3b authored by Krisjanis Rijnieks's avatar Krisjanis Rijnieks :lion_face:
Browse files

Add failing with an error if inventory parts not found in the library

parent 02809a70
No related branches found
No related tags found
No related merge requests found
......@@ -45,4 +45,10 @@ for ITEM in ${ITEMS}; do
fi
done
echo "Total errors: ${ERRORS}"
if [ ${ERRORS} -eq 0 ]; then
echo -e "${GREEN}SUCCESS: All parts can be found!${RESET}"
exit 0
else
echo -e "${RED}ERROR(${ERRORS}): Some parts could not be found.${RESET}"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment