2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-05 22:51:52 +01:00

Adding stackbrew-library improvements

This commit is contained in:
Philipp Holzer 2018-12-13 20:17:18 +01:00
parent ea3be956d6
commit 4ea40be638
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -12,7 +12,13 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
# Get the most recent commit which modified any of "$@".
fileCommit() {
git log -1 --format='format:%H' HEAD -- "$@"
commit="$(git log -1 --format='format:%H' HEAD -- "$@")"
if [ -z "$commit" ]; then
# return some valid sha1 hash to make bashbrew happy
echo '0000000000000000000000000000000000000000'
else
echo "$commit"
fi
}
# Get the most recent commit which modified "$1/Dockerfile" or any file that
@ -50,6 +56,7 @@ getArches 'friendica'
# Header.
cat <<-EOH
# This file is generated via https://github.com/friendica/docker/blob/$(fileCommit "$self")/$self
Maintainers: Friendica <info@friendi.ca> (@friendica), Philipp Holzer <admin@philipp.info> (@nupplaphil)
GitRepo: https://github.com/friendica/docker.git
EOH