build: allow the docker build script to be sourced by downstream repository.

This commit is contained in:
Alexandre Pujol 2025-03-04 22:38:46 +01:00
parent 334b48749a
commit b752ff540c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -14,7 +14,7 @@ readonly VOLUME=/tmp/build
readonly BUILDIR=/home/build/tmp
readonly OUTDIR=".pkg"
readonly OUTPUT="$PWD/$OUTDIR"
readonly COMMAND="$1"
readonly COMMAND="${1:-}"
VERSION="0.$(git rev-list --count HEAD)"
PACKAGER="$(git config user.name) <$(git config user.email)>"
readonly VERSION PACKAGER