Update update.sh

This commit is contained in:
dinger1986 2023-08-25 00:08:07 +01:00 committed by GitHub
parent a70cd79e36
commit cce8bbbbee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Get username
uname=$(whoami) # not used btw ... yet
usern=$(whoami) # not used btw ... yet
# Get current release version
RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server-pro/releases/latest -s | grep "tag_name"| awk '{print substr($2, 2, length($2)-3) }' | sed 's/-.*//')