summarylogtreecommitdiffstats
path: root/notion-enhancer
blob: 4d1993d8bcaf08a9cba4136c99feec200ee6538b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}