summaryrefslogtreecommitdiff
path: root/data/cydia/_metadata/preinst
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-08-11 11:03:20 +0000
committerJay Freeman <saurik@saurik.com>2008-08-11 11:03:20 +0000
commitc84057bb1338d6c975e9714772dce288e4345310 (patch)
tree9f44bf3f060803ccaea11789b4d77ea0c51deab5 /data/cydia/_metadata/preinst
parentece7b468698d0227e2e215cd4291bb8c4c74a510 (diff)
Upgraded to the latest Cydia.
git-svn-id: http://svn.telesphoreo.org/trunk@422 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/cydia/_metadata/preinst')
-rwxr-xr-xdata/cydia/_metadata/preinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/cydia/_metadata/preinst b/data/cydia/_metadata/preinst
new file mode 100755
index 000000000..2c836cd4d
--- /dev/null
+++ b/data/cydia/_metadata/preinst
@@ -0,0 +1,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