Skip to content

Commit

Permalink
fix get_version_string
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Dec 8, 2023
1 parent bf6129c commit fc768ca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ get_version_string() {
version_minor=$(grep 'VERSION_MINOR\s*=\s*[0-9]*' "${python_file}" | awk -F= '{print $2}' | tr -d ' ')
version_patch=$(grep 'VERSION_PATCH\s*=\s*[0-9]*' "${python_file}" | awk -F= '{print $2}' | tr -d ' ')

local version_string
if [ -n "$version_major" ] && [ -n "$version_minor" ] && [ -n "$version_patch" ]; then
local version_string="${version_major}.${version_minor}.${version_patch}"
echo "Jukebox Version: ${version_string}"
else
echo "Unable to extract version information from ${python_file}"
version_string="${version_major}.${version_minor}.${version_patch}"
fi
echo "${version_string}"
}

### Verify helpers
Expand Down

0 comments on commit fc768ca

Please sign in to comment.