#!/bin/sh
grep '\(Ubuntu 18.04\|Linux Mint 19\)' /etc/os-release || ( echo "This INSTALL.sh is for '\(Ubuntu 18.04\|Linux Mint 19\)'. Press CTRL-C to abort, ENTER to continue"; read a )
apt-get update -y && apt-get install -y wget gnupg2 curl binutils apt-transport-https
wget -nv https://download.owncloud.com/desktop/testpilotcloud/stable/2.7.1.2561/linux/Ubuntu_18.04/Release.key -O - | apt-key add - || exit 1
echo 'deb https://download.owncloud.com/desktop/testpilotcloud/stable/2.7.1.2561/linux/Ubuntu_18.04/ /' > /etc/apt/sources.list.d/testpilotcloud.list
apt-get update -q
apt-get install -y testpilotcloud-client
