Files
releases/build/get-build-commit.sh
T
Torin Sandall e2297a7833 Basic infrastructure and process documentation
- Updated source code layout to use standard Go project structure.
- Makefile for build and test execution.
- Glide for dependency management.
- Integrated spf13/cobra for command line entry point.
- Added docs on release and development process.
2016-03-30 08:58:21 -07:00

10 lines
168 B
Bash
Executable File

#!/usr/bin/env bash
GIT_SHA=$(git rev-parse --short HEAD)
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
echo $GIT_SHA
else
echo "$GIT_SHA-dirty"
fi