Commit ed9fe999 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play anydesk: use common.sh

parent e8c48eba
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=anydesk
DESCRIPTION="AnyDesk from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "AnyDesk from the official site" && exit
arch=$($DISTRVENDOR --distro-arch)
case $arch in
......
#!/bin/sh
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
if [ "$1" = "--installed" ] ; then
epm installed $PKGNAME
exit
fi
if [ -n "$DESCRIPTION" ] ; then
[ "$1" != "--run" ] && echo "$DESCRIPTION" && exit
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment