diff options
Diffstat (limited to 'data/cydia/_metadata/preinst')
-rwxr-xr-x | data/cydia/_metadata/preinst | 16 |
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 |