circuitpython/tools/describe

7 lines
139 B
Bash
Executable File

#!/bin/sh
if [ -z "$CP_VERSION" ]; then
git describe --first-parent --dirty --tags --match "[1-9].*" "$@"
else
echo $CP_VERSION
fi