post_install() { echo "Applying notion-enhancer automatically..." notion-enhancer apply -y } post_upgrade() { if [[ "$(notion-enhancer check)" == *" not "* ]]; then echo "Notion-enhancer is not applied, skipping" else echo "Reapplying notion-enhancer" notion-enhancer apply -y fi } pre_remove() { echo "Disabling notion-enhancer..." notion-enhancer remove -y }