minor
This commit is contained in:
parent
af2feff68a
commit
ba4c4dd591
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user