]> git.saurik.com Git - cydia.git/blame - preinst
Add crazy redirection mechanism for gs.apple.com.
[cydia.git] / preinst
CommitLineData
35ee8548
JF
1#!/bin/bash
2
3declare -a cydia
4cydia=($CYDIA)
5
6if [[ $1 == upgrade ]]; then
7 if [[ ${CYDIA+@} ]]; then
8 if [[ ${cydia[1]} -lt 1 ]]; then
9 echo 'PLEASE RESTART CYDIA!'
10 echo 'PLEASE RESTART CYDIA!'
11 echo 'PLEASE RESTART CYDIA!'
12 else
13 eval "echo 'finish:reopen' >&${cydia[0]}"
14 fi
15 fi
35ee8548
JF
16fi
17
18exit 0