summaryrefslogtreecommitdiff
path: root/data/cydia/_metadata/preinst
blob: 2c836cd4dc8e0f1babc2c1d0bb9dd71764e85970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

declare -a cydia
cydia=($CYDIA)

if [[ $1 == install || $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