From b77bd304607335307296948e7fc341852afa6fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Tue, 25 Jan 2022 23:26:05 +0100 Subject: [PATCH] When checking for shell, use strict grep (#3437) --- packages/bsp/common/usr/lib/armbian/armbian-firstlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin index dc79a1a76a..a84ff7775b 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin @@ -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