#!/bin/bash
# prerm script for amvka

set -e

case "$1" in
    remove|upgrade|deconfigure)
        # Remove symlink if it exists
        if [ -L /usr/bin/amvka ]; then
            rm -f /usr/bin/amvka
        fi
        
        # Note: We don't remove user configuration files in ~/.amvka
        # as this is user data that should persist
        ;;
    
    failed-upgrade)
        ;;
    
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

exit 0