X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/09c4ed7316c895ce69715f4b1f7ddb222c6de12d..4d6cca19386fb50e3047a734cb9416d2210b87ef:/build-package.sh diff --git a/build-package.sh b/build-package.sh index 7281c5f4..c6d768cc 100755 --- a/build-package.sh +++ b/build-package.sh @@ -961,6 +961,12 @@ termux_step_post_massage() { termux_step_create_datatar() { # Create data tarball containing files to package: cd "$TERMUX_PKG_MASSAGEDIR" + + local HARDLINKS="$(find . -type f -links +1)" + if [ -n "$HARDLINKS" ]; then + termux_error_exit "Package contains hard links: $HARDLINKS" + fi + if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then termux_error_exit "No files in package" fi