1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash # # Check the latest tag. # # Parameters BASENAME="`basename $0`" # Get the latest tag tag="`git describe --abbrev=0 --tags`" # Check it git tag -v $tag