#!/bin/bash
set -e

# Delete the link to the binary
# Note: this leaves the symlink around, but there doesn't appear to be a way to
# remove it and the user has to run update-alternatives manually to do so.  This
# seems to be by design based on
# lintian-explain-tags postrm-removes-alternative explanation.
if type update-alternatives >/dev/null 2>&1; then
    update-alternatives --remove 'obsidian' '/usr/bin/obsidian'
else
    rm -f '/usr/bin/obsidian'
fi

#DEBHELPER#
