mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
UX: cosmetic improvements on motd and armbian-install
This commit is contained in:
@@ -247,11 +247,12 @@ set_shell() {
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
SHELL_PATH=$(grep "/$USER_SHELL$" /etc/shells | tail -1)
|
||||
|
||||
chsh -s "$(grep -iF "/$USER_SHELL" /etc/shells | tail -1)"
|
||||
# Display shell selection only if needs to be selected
|
||||
echo -e "\nShell: \x1B[92m${USER_SHELL^^}\x1B[0m"
|
||||
fi
|
||||
|
||||
SHELL_PATH=$(grep "/$USER_SHELL$" /etc/shells | tail -1)
|
||||
chsh -s "$(grep -iF "/$USER_SHELL" /etc/shells | tail -1)"
|
||||
|
||||
# change shell for future users
|
||||
sed -i "s|^SHELL=.*|SHELL=${SHELL_PATH}|" /etc/default/useradd
|
||||
|
||||
Reference in New Issue
Block a user