install-tusd: Be careful to match the complete version line.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-09-24 20:15:23 -07:00 committed by Tim Abbott
parent fb623f4450
commit d5bc3421fc
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ case $arch in
esac esac
check_version() { check_version() {
out="$(tusd --version)" && [[ "$out" = *"Version: v$version"* ]] out="$(tusd --version)" && [[ "$out" = "Version: v$version
"* ]]
} }
if ! check_version 2>/dev/null; then if ! check_version 2>/dev/null; then