openbsd-ports/shells/zsh/pkg/DEINSTALL
2004-07-12 19:46:52 +00:00

23 lines
486 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.4 2004/07/12 19:46:52 lebel Exp $
#
# zsh de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
if grep -q ${PREFIX}/bin/zsh /etc/shells; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to edit"
echo "| /etc/shells and remove this line:"
echo "|"
echo "| ${PREFIX}/bin/zsh"
echo "|"
echo "+---------------"
echo
fi
exit 0