mirror of https://github.com/ekimekim/wubloader
Default to using the current commit, instead of latest
This is generally what you want, and will behave better than using latest.pull/140/head
parent
731ef9e2d0
commit
751472217b
@ -0,0 +1,11 @@
|
||||
#!/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"
|
Loading…
Reference in New Issue