When checking for shell, use strict grep (#3437)

This commit is contained in:
Igor Pečovnik 2022-01-25 23:26:05 +01:00 committed by GitHub
parent 561e0edf41
commit b77bd30460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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