This commit is contained in:
Konano 2023-10-25 14:42:18 +08:00
parent af2feff68a
commit ba4c4dd591
2 changed files with 3 additions and 1 deletions

View File

@ -139,6 +139,8 @@ configure_hostname() {
}
configure_timedate() {
[[ $(timedatectl | grep "Time zone" | awk '{print $3}') == "Asia/Shanghai" ]] && return
if confirm_action "要修改 时区 吗?" "N"; then
sudo timedatectl set-timezone Asia/Shanghai
fi

View File

@ -54,7 +54,7 @@ configure_miniconda() {
configure_nodejs() {
[ -d ~/.nvm/.git ] && return
if confirm_action "要安装 nodejs 吗?" "Y"; then
if confirm_action "要安装 nvm 和 nodejs 吗?" "Y"; then
git_clone nvm-sh/nvm ~/.nvm --depth=1
\. $scriptdir/files/install-nvm.sh
\. ~/.nvm/nvm.sh