#!/bin/sh # Register gosh as a login shell in /etc/shells. set -e if command -v add-shell >/dev/null 2>&1; then add-shell /usr/bin/gosh elif ! grep -qx /usr/bin/gosh /etc/shells 2>/dev/null; then echo /usr/bin/gosh >> /etc/shells fi