slackbuilds/system/posh/doinst.sh

9 lines
158 B
Bash

if [ ! -r etc/shells ]; then
touch etc/shells
chmod 644 etc/shells
fi
if ! grep -q /bin/posh etc/shells ; then
printf %s\\n /bin/posh >> etc/shells
fi