#!/bin/sh set -e OS="linux" ARCH="amd64" VERSION="latest" BINARY_URL="https://releases.remotely.sh/latest/linux/amd64/remotely" INSTALL_DIR="/usr/local/bin" echo "Installing Remotely CLI (${OS}/${ARCH})..." # Download binary curl -fsSL "${BINARY_URL}" -o /tmp/remotely chmod +x /tmp/remotely # Install if [ -w "${INSTALL_DIR}" ]; then mv /tmp/remotely "${INSTALL_DIR}/remotely" else sudo mv /tmp/remotely "${INSTALL_DIR}/remotely" fi echo "Remotely CLI installed successfully." echo "Run 'remotely login' to get started."