#!/bin/bash DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" function error { echo -e "\\e[91m$1\\e[39m" exit 1 } #file name for future updates filename='anydesk_6.0.1-1_armhf' #download the deb file wget https://download.anydesk.com/rpi/${filename}.deb || error "Failed to downloading file. Make sure 'wget' is installed and verify your Internet Network Connection" # Installing the software with permissions sudo apt install -y --fix-broken ~/${filename}.deb || error "Failed to install it using gdebi"