#!/bin/sh -x# TODO: common placefatal(){echo"FATAL: $*">&2exit 1}PKGNAME=discordif["$1"="--remove"];thenepm remove $PKGNAMEexitfi["$1"!="--run"]&&echo"Install Discord from the official site"&&exit["$($DISTRVENDOR-a)"!="x86_64"]&&echo"Only x86_64 is supported"&&exit 1# FIXME: improve eget to support ? not ask mask (detect by =?)