#!/bin/sh
set -e

optdir="/opt/Ventoy"

case "$1" in
    remove|purge)
        if [ -d "$optdir" ]; then
            rm -rf "$optdir"
        fi
        ;;
    upgrade|failed-upgrade|abort-install)
        # No action needed
        ;;
esac

exit 0

