forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
15 lines
334 B
Bash
15 lines
334 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
POST-DEINSTALL)
|
|
rm -f /etc/profile.autojump
|
|
rm -f /etc/zshrc.autojump
|
|
# delete the source (.) line from the /etc/profile and /etc/zshrc
|
|
if [ -f /etc/profile ] ; then
|
|
sed -i '' -e '/profile.autojump/d' /etc/profile
|
|
fi
|
|
if [ -f /etc/zshrc ] ; then
|
|
sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
|
|
fi
|
|
;;
|
|
esac
|