version has been moved to version.txt

This commit is contained in:
Isaac Connor
2023-06-12 09:44:32 -04:00
parent f8915aa363
commit 02bb120f6e

View File

@@ -50,10 +50,10 @@ createvars () {
shorthash=$(git describe --long --always | awk -F - '{print $3}')
# Grab the ZoneMinder version from the contents of the version file
versionfile=$(cat version)
versionfile=$(cat version.txt)
# 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)