mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Added a better message for when we build an unsupported version
Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
This commit is contained in:
parent
9fbe1d9917
commit
181d2725d7
1 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,14 @@ if command -v git &> /dev/null && git rev-parse &> /dev/null; then
|
||||||
GITCOMMIT=$(git rev-parse --short HEAD)
|
GITCOMMIT=$(git rev-parse --short HEAD)
|
||||||
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
||||||
GITCOMMIT="$GITCOMMIT-unsupported"
|
GITCOMMIT="$GITCOMMIT-unsupported"
|
||||||
|
echo "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||||
|
echo "# GITCOMMIT = $GITCOMMIT"
|
||||||
|
echo "# The version you are building is listed as unsupported because"
|
||||||
|
echo "# there are some files in the git repository that are in an uncommited state."
|
||||||
|
echo "# Commit these changes, or add to .gitignore to remove the -unsupported from the version."
|
||||||
|
echo "# Here is the current list:"
|
||||||
|
git status --porcelain --untracked-files=no
|
||||||
|
echo "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||||
fi
|
fi
|
||||||
! BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
|
! BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
|
||||||
if [ -z $BUILDTIME ]; then
|
if [ -z $BUILDTIME ]; then
|
||||||
|
|
Loading…
Reference in a new issue