mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-10 01:17:19 +00:00
If git describe fails, assume new undetermined version
This commit is contained in:
parent
c79fca6a45
commit
82599e542e
@ -55,10 +55,17 @@ installed_state_capture() {
|
|||||||
local gitver=$(git describe)
|
local gitver=$(git describe)
|
||||||
echo "GIT_VERSION='$gitver'" >>"$info"
|
echo "GIT_VERSION='$gitver'" >>"$info"
|
||||||
|
|
||||||
parse_miab_version_string "$gitver"
|
if [ -z "$gitver" ]; then
|
||||||
if [ $? -ne 0 ]; then
|
# git: "No names found, cannot describe anything"
|
||||||
echo "Unable to parse version string: $gitver"
|
MAJOR=999
|
||||||
return 1
|
MINOR=
|
||||||
|
RELEASE=
|
||||||
|
else
|
||||||
|
parse_miab_version_string "$gitver"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Unable to parse version string: '$gitver'"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "MAJOR=$MAJOR" >>"$info"
|
echo "MAJOR=$MAJOR" >>"$info"
|
||||||
echo "MINOR=$MINOR" >>"$info"
|
echo "MINOR=$MINOR" >>"$info"
|
||||||
|
Loading…
Reference in New Issue
Block a user