#!/bin/sh
grep 'openSUSE Leap 15.2' /etc/os-release || ( echo "This INSTALL.sh is for 'openSUSE Leap 15.2'. Press CTRL-C to abort, ENTER to continue"; read a )
zypper addrepo https://download.owncloud.com/desktop/online/2.8.2/owncloudonline-2.8.2.4401-linux/openSUSE_Leap_15.2/owncloudonline.repo || exit 1
zypper --non-interactive --gpg-auto-import-keys refresh
zypper --non-interactive install -y owncloudonline-client
