Jeffrey Paul
7df558d8d0
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: sneak <sneak@sneak.berlin> Reviewed-on: #5
13 lines
200 B
Bash
13 lines
200 B
Bash
#!/bin/bash
|
|
#
|
|
if [[ ! -z "$DRONE_COMMIT_SHA" ]]; then
|
|
echo "${DRONE_COMMIT_SHA:0:7}"
|
|
exit 0
|
|
fi
|
|
|
|
if [[ ! -z "$GITREV" ]]; then
|
|
echo $GITREV
|
|
else
|
|
git describe --always --dirty=-dirty
|
|
fi
|