mfer/bin/gitrev.sh

7 lines
108 B
Bash

#!/bin/bash
if [[ ! -z "$GITREV" ]]; then
echo $GITREV
else
git describe --always --dirty=-dirty
fi