openbsd-ports/shells/scsh/pkg/DEINSTALL
2000-07-19 09:31:17 +00:00

23 lines
488 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2000/07/19 09:31:24 brad Exp $
#
# scsh de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
if grep -q ${PREFIX}/bin/scsh /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/scsh"
echo "|"
echo "+---------------"
echo
fi
exit 0