rustdesk-installer/download-latest.sh
2023-10-12 13:40:46 +03:00

14 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
CURRENT_VERSION=$(head -1 version)
URL="https://github.com/rustdesk/rustdesk-server/releases/download/${CURRENT_VERSION}/rustdesk-server-linux-amd64.zip"
wget "${URL}" -O "rustdesk-server-linux-amd64.zip"
unzip "rustdesk-server-linux-amd64.zip"
mkdir -p bin
mv -v amd64/* bin/
rmdir -v amd64