You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/get-build-tag

12 lines
210 B
Bash

#!/bin/bash
# cd to location of script
cd "$(dirname "$(readlink -f "$0")")"
TAG=$(git rev-parse --short HEAD)
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
TAG="$TAG-wip"
fi
echo "$TAG"