1 # $FreeBSD: head/Keywords/shell.ucl 417133 2016-06-19 22:21:22Z bapt $
3 # MAINTAINER: portmgr@FreeBSD.org
7 # Handle adding and remove a path to a shell binary into /etc/shells
16 cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
17 (grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak; echo ${file}) > ${PKG_ROOTDIR}/etc/shells
18 rm -f ${PKG_ROOTDIR}/etc/shells.bak
25 cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
26 grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak > ${PKG_ROOTDIR}/etc/shells
27 rm -f ${PKG_ROOTDIR}/etc/shells.bak