build-package.sh: never use git outside of package build process.

termux-packages is not guaranteed to be always used as git repository.
Relying on git here may lead to issues.

P.S. Avoid unfinished work on master branch!
This commit is contained in:
Leonid Pliushch 2021-05-19 13:09:48 +03:00
parent 22ccd3797c
commit c9664c11ba
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -3,7 +3,7 @@
set -e -o pipefail -u
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
SOURCE_DATE_EPOCH=$(date "+%s")
export SOURCE_DATE_EPOCH
: "${TMPDIR:=/tmp}"