summaryrefslogtreecommitdiff
path: root/preinst
blob: 2919749dd55177d84d4ee35691bcf83a9ad6c7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

declare -a cydia
cydia=($CYDIA)

if [[ $1 == upgrade ]]; then
    if [[ ${CYDIA+@} ]]; then
        if [[ ${cydia[1]} -lt 1 ]]; then
            echo 'PLEASE RESTART CYDIA!'
            echo 'PLEASE RESTART CYDIA!'
            echo 'PLEASE RESTART CYDIA!'
        else
            eval "echo 'finish:reopen' >&${cydia[0]}"
        fi
    fi
fi

exit 0