Add a dash to separate the version

This commit is contained in:
adrien 2021-09-30 22:13:06 +02:00
parent d7febd3608
commit 4c1cbb5cf1
Signed by: adrien
GPG Key ID: 4F17BEA67707AC21
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ function update_vaultwarden {
}
# retrieve local release
local_release=$(/usr/local/bin/vaultwarden --version | awk --field-separator ' ' '{print $2}')
local_release=$(/usr/local/bin/vaultwarden --version | awk --field-separator '-' '{print $2}')
# retrieve the latest release
latest_release=$(git ls-remote https://github.com/dani-garcia/vaultwarden.git HEAD | awk '{print substr($1, 1, length($1) - 32)}')