Fix unexpected stop when build, add delimiter in log

- Fix stop the whole build when error occurred in a single package build
- Add delimiter in build_all script log,
This commit is contained in:
leafee98 2023-08-18 12:22:11 +08:00
parent e18a7af760
commit 9486cad563

View file

@ -58,6 +58,7 @@ set -o nounset
set -o errexit
set -o errtrace
_DELIMITER="================================================================"
_PROGRAM_NAME="$0"
_PACKGES_TO_BUILD=()
MAKEDEB_PATH=""
@ -115,6 +116,7 @@ fi
for package in "${_PACKGES_TO_BUILD[@]}" ; do
(
msg_info "$_DELIMITER"
msg_info "Start for $package"
cd "$package"
@ -146,7 +148,7 @@ for package in "${_PACKGES_TO_BUILD[@]}" ; do
msg_info "Uploading $package_name to $UPLOAD_TO_WEBDAV"
upload_to_webdav "$package_name" "$UPLOAD_TO_WEBDAV" "$WEBDAV_USER" "$WEBDAV_PASS"
fi
)
) || true
done