viber.sh 447 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh

# TODO: common place
fatal()
{
    echo "FATAL: $*" >&2
    exit 1
}

PKGNAME=viber

if [ "$1" = "--remove" ] ; then
    epm remove $PKGNAME
    exit
fi

17
[ "$1" != "--run" ] && echo "Viber for Linux from the official site" && exit
18 19 20 21 22 23 24 25

[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1


# the same binaries in deb and rpm
PKG="https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb"

epm install "$PKG"