]> git.saurik.com Git - winterboard.git/blame - prerm
Also provide folder argument when bundle remapping.
[winterboard.git] / prerm
CommitLineData
62b2dbad
JF
1#!/bin/sh
2
d5fb6e01
JF
3declare -a cydia
4cydia=($CYDIA)
5
62b2dbad 6if [[ $1 == remove ]]; then
d5fb6e01
JF
7 if [[ ${CYDIA+@} ]]; then
8 eval "echo 'finish:restart' >&${cydia[0]}"
9 fi
95a5777b
JF
10
11 grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf >/etc/notify.conf_ &&
4668cd8e
JF
12 chmod --reference=/etc/notify.conf /etc/notify.conf_ &&
13 chown --reference=/etc/notify.conf /etc/notify.conf_ &&
95a5777b 14 mv -f /etc/notify.conf{_,} || rm -f /etc/notify.conf_
62b2dbad 15fi
5a923d4b
JF
16
17exit 0