11 lines
219 B
Bash
11 lines
219 B
Bash
#!/bin/sh
|
|
|
|
SHELLS="/bin/dash /usr/bin/dash"
|
|
|
|
for _shell in $SHELLS; do
|
|
if grep -q "^${_shell}\$" /etc/shells; then
|
|
echo "Removing '$_shell' from /etc/shells..."
|
|
sed -i "\|^${_shell}\$|d" /etc/shells
|
|
fi
|
|
done
|