scripts: adjust error and warn messages
This commit is contained in:
parent
44cf9681db
commit
e0b07a427b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue