#!/bin/sh SHELLS="/bin/nu /usr/bin/nu" for _shell in $SHELLS; do if ! grep -q "^${_shell}\$" /etc/shells; then echo "Adding '$_shell' to /etc/shells..." echo "$_shell" | tee -a /etc/shells 1>/dev/null fi done