Update to reflect the change of version to version.txt

This commit is contained in:
Isaac Connor
2023-06-12 09:35:07 -04:00
parent a10e1d51d2
commit f8915aa363

View File

@@ -161,7 +161,7 @@ else
else
if [ "$SNAPSHOT" == "CURRENT" ]; then
# git the latest (short) commit hash of the version file
versionhash=$(git log -n1 --pretty=format:%h version)
versionhash=$(git log -n1 --pretty=format:%h version.txt)
# Number of commits since the version file was last changed
numcommits=$(git rev-list ${versionhash}..HEAD --count)
@@ -180,7 +180,7 @@ fi;
echo "git pull..."
git pull
# Grab the ZoneMinder version from the contents of the version file
VERSION=$(cat version)
VERSION=$(cat version.txt)
if [ -z "$VERSION" ]; then
exit 1;
fi;