scripts: adjust error and warn messages

This commit is contained in:
Jia Yuan Lo 2023-12-09 22:36:45 +08:00
parent 44cf9681db
commit e0b07a427b
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ termux_create_debian_subpackages() {
mkdir -p "$SUB_PKG_MASSAGE_DIR/$_INCLUDE_DIRSET"
mv "$includeset" "$SUB_PKG_MASSAGE_DIR/$_INCLUDE_DIRSET"
else
echo "WARNING: tried to add $includeset to subpackage, but could not find it"
echo "WARNING: tried to add $includeset to subpackage '$SUB_PKG_NAME', but could not find it"
fi
done
shopt -u globstar extglob

View File

@ -23,7 +23,7 @@ termux_download() {
ACTUAL_CHECKSUM=$(sha256sum "$TMPFILE" | cut -f 1 -d ' ')
if [ "$CHECKSUM" != "SKIP_CHECKSUM" ]; then
if [ "$CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
>&2 printf "Wrong checksum for %s:\nExpected: %s\nActual: %s\n" \
>&2 printf "Wrong checksum for %s\nExpected: %s\nActual: %s\n" \
"$URL" "$CHECKSUM" "$ACTUAL_CHECKSUM"
return 1
fi