2022-12-05 22:59:08 +00:00
|
|
|
#!/bin/bash
|
2022-12-08 23:51:19 +00:00
|
|
|
#
|
|
|
|
if [[ ! -z "$DRONE_COMMIT_SHA" ]]; then
|
|
|
|
echo "${DRONE_COMMIT_SHA:0:7}"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2022-12-05 22:59:08 +00:00
|
|
|
if [[ ! -z "$GITREV" ]]; then
|
|
|
|
echo $GITREV
|
|
|
|
else
|
|
|
|
git describe --always --dirty=-dirty
|
|
|
|
fi
|