mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
findversion.sh: Handle case where tag/stable tag is missing from .ottdrev-vc
This commit is contained in:
parent
45a3b7166e
commit
f8724beb29
@ -102,6 +102,12 @@ elif [ -f "$ROOT_DIR/.ottdrev-vc" ]; then
|
|||||||
HASH="`echo "$VERSION_DATA" | cut -f 4 -d' '`"
|
HASH="`echo "$VERSION_DATA" | cut -f 4 -d' '`"
|
||||||
ISTAG="`echo "$VERSION_DATA" | cut -f 5 -d' '`"
|
ISTAG="`echo "$VERSION_DATA" | cut -f 5 -d' '`"
|
||||||
ISSTABLETAG="`echo "$VERSION_DATA" | cut -f 6 -d' '`"
|
ISSTABLETAG="`echo "$VERSION_DATA" | cut -f 6 -d' '`"
|
||||||
|
if [ -z "$ISTAG" ]; then
|
||||||
|
ISTAG="0"
|
||||||
|
fi
|
||||||
|
if [ -z "$ISSTABLETAG" ]; then
|
||||||
|
ISSTABLETAG="0"
|
||||||
|
fi
|
||||||
if [ "$MODIFIED" = "2" ]; then
|
if [ "$MODIFIED" = "2" ]; then
|
||||||
VERSION="`echo "$VERSION" | sed -e 's/M$//'`"
|
VERSION="`echo "$VERSION" | sed -e 's/M$//'`"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user