Skip to content

Commit

Permalink
Add missing exit status error check for tar packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
onetechnical committed Sep 23, 2024
1 parent 0ceb4fe commit 07c79c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ for var in "${VARIATION_ARRAY[@]}"; do

pushd ${PLATFORM_ROOT}
tar --exclude=tools -zcf ${PKG_ROOT}/node_${CHANNEL}_${PKG_NAME}_${FULLVERSION}.tar.gz * >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error creating node tar file for package ${PLATFORM}. Aborting..."
exit 1
fi
cd bin
tar -zcf ${PKG_ROOT}/install_${CHANNEL}_${PKG_NAME}_${FULLVERSION}.tar.gz updater update.sh >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error creating tar file for package ${PLATFORM}. Aborting..."
echo "Error creating install tar file for package ${PLATFORM}. Aborting..."
exit 1
fi

Expand Down

0 comments on commit 07c79c9

Please sign in to comment.