#!/bin/sh
set -e

case "$1" in
    remove|purge)
        # Remove the directory if it exists
        if [ -d "/opt/AutoText" ]; then
            rm -rf "/opt/AutoText"
        fi
        ;;
esac

exit 0