Update update.sh

This commit is contained in:
dinger1986 2024-05-24 15:43:47 +01:00 committed by GitHub
parent 3561c02956
commit 7e5c0fcdec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
uname=$(whoami) # not used btw .. yet
# Get current release version
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest -s | grep "tag_name"| awk '{print substr($2, 2, length($2)-3) }')
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest -s | grep "tag_name" | awk -F'"' '{print $4}')
RDCURRENT=$(/opt/rustdesk/hbbr --version | sed -r 's/hbbr (.*)/\1/')
if [ $RDLATEST == $RDCURRENT ]; then