#!/bin/bash if [[ $1 = remove || $1 = purge ]]; then if [ "$(realpath /usr/local/bin/medley)" = "--MEDLEYDIR--/scripts/medley.sh" ]; then rm -f /usr/local/bin/medley fi fi