4 lines
129 B
Bash
Executable File
4 lines
129 B
Bash
Executable File
#!/bin/sh
|
|
GIT_VERSION=$(git --no-pager describe --tags --dirty |sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g')
|
|
echo -ne ${GIT_VERSION}
|