1
0

print standalone version

This commit is contained in:
GenZmeY 2022-06-15 21:01:40 +03:00
parent 3b32e9f14f
commit dc1884a7c5

View File

@ -227,7 +227,14 @@ EOF
function version ()
{
msg "${BLD}$ScriptName $(git describe 2> /dev/null)${DEF}"
local Version=""
Version="$(git describe 2> /dev/null)"
if [[ -z "$Version" ]]; then
Version="(standalone)"
fi
msg "${BLD}$ScriptName $Version${DEF}"
}
function cleanup()