#!/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://ftp.gwdg.de/pub/gwdg/academiccloudsync/Ubuntu_18.04/Release.key -O - | apt-key add - || exit 1
echo 'deb https://ftp.gwdg.de/pub/gwdg/academiccloudsync/Ubuntu_18.04/ /' > /etc/apt/sources.list.d/academiccloudsync.list
apt-get update -q
apt-get install -y academiccloudsync-client
