Files
zsh/post_update.sh
T

11 lines
225 B
Bash

#!/bin/sh
SHELLS="/bin/zsh /usr/bin/zsh"
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