]> git.saurik.com Git - winterboard.git/blame_incremental - prerm
Even if Scale_ is 1, IsWild_ doesn't have to be 0.
[winterboard.git] / prerm
... / ...
CommitLineData
1#!/bin/sh
2
3declare -a cydia
4cydia=($CYDIA)
5
6if [[ $1 == remove ]]; then
7 if [[ ${CYDIA+@} ]]; then
8 eval "echo 'finish:restart' >&${cydia[0]}"
9 fi
10
11 grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf >/etc/notify.conf_ &&
12 chmod --reference=/etc/notify.conf /etc/notify.conf_ &&
13 chown --reference=/etc/notify.conf /etc/notify.conf_ &&
14 mv -f /etc/notify.conf{_,} || rm -f /etc/notify.conf_
15fi
16
17exit 0