summaryrefslogtreecommitdiff
path: root/data/cydia/_metadata/preinst
diff options
context:
space:
mode:
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