安装软件两次git,备份阿里云盘检测登录
This commit is contained in:
parent
2402b0ed68
commit
25b8313170
@ -66,10 +66,9 @@ if [[ ! $aliyun_pick =~ [Nn] ]];then
|
||||
unzip "${path}/aliyunpan.zip" -d "${path}"
|
||||
rm "${path}/aliyunpan.zip"
|
||||
mv "${path}/$(ls "${path}" | grep "aliyunpan")" "${path}/aliyunpan"
|
||||
fi
|
||||
if [[ "$( ${path}/aliyunpan/aliyunpan who)" == "未登录账号" ]];then
|
||||
${path}/aliyunpan/aliyunpan login
|
||||
else
|
||||
echo "检测到阿里云盘已经存在,请确认是否登录"
|
||||
${path}/aliyunpan/aliyunpan who
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -19,10 +19,9 @@ soft_array[0]='git'
|
||||
soft_array[1]='vim'
|
||||
soft_array[2]='wget'
|
||||
soft_array[3]='curl'
|
||||
soft_array[4]='git'
|
||||
soft_array[5]='ssh'
|
||||
soft_array[6]='zsh'
|
||||
soft_array[7]='zip'
|
||||
soft_array[4]='ssh'
|
||||
soft_array[5]='zsh'
|
||||
soft_array[6]='zip'
|
||||
|
||||
echo "======一键安装常用软件======"
|
||||
for i in "${soft_array[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user