summaryrefslogtreecommitdiff
path: root/data/mobileterminal/_metadata/postinst
blob: c0b1fb066732585b4abf27fadacf012a4be6f180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
shopt -s extglob

if [[ $# -gt 1 && $1 == configure ]]; then
    ver=${2%%?(u)-*([0-9])}
    rev=${2##*-}

    if [[ ${ver} -lt 286 || ${ver} -eq 286 && ${rev} -lt 6 ]]; then
        rm -f ~mobile/Library/Preferences/com.googlecode.mobileterminal.plist
    fi
fi

exit 0