When checking for shell, use strict grep (#3437)
This commit is contained in:
parent
561e0edf41
commit
b77bd30460
@ -88,7 +88,7 @@ set_shell()
|
||||
fi
|
||||
SHELL_PATH=$(grep /$USER_SHELL$ /etc/shells | tail -1)
|
||||
|
||||
chsh -s $(grep -iF "/$USER_SHELL" /etc/shells | tail -1)
|
||||
chsh -s $(grep -wiF "/$USER_SHELL" /etc/shells | tail -1)
|
||||
echo -e "\nShell: \x1B[92m${USER_SHELL^^}\x1B[0m"
|
||||
|
||||
# change shell for future users
|
||||
|
||||
Loading…
Reference in New Issue
Block a user