include build identifier in FILE_VERSION

change cut to return field 2 and 3 instead of just 2
This commit is contained in:
myellen 2018-11-28 16:19:02 -05:00 committed by Max
commit 117f92269d
No known key found for this signature in database
GPG key ID: 0BDA73476CD8AB10

View file

@ -229,7 +229,7 @@ parseVersion() {
if [ "${REDHAT}" = "yes" ]; then if [ "${REDHAT}" = "yes" ]; then
cut -f2- -d- <<< "$1" | cut -f1-4 -d. cut -f2- -d- <<< "$1" | cut -f1-4 -d.
elif [ "${DISTRO}" = "synology" ]; then elif [ "${DISTRO}" = "synology" ]; then
cut -f2 -d- <<< "$1" cut -f2-3 -d- <<< "$1"
else else
cut -f2 -d_ <<< "$1" cut -f2 -d_ <<< "$1"
fi fi