[ agent ] 优化部分内容

This commit is contained in:
zeaslity
2024-05-14 14:09:02 +08:00
parent 1b11d6b45c
commit e28c1f8212
5 changed files with 64 additions and 6 deletions

View File

@@ -455,7 +455,7 @@ install_zsh() {
install_demand_softwares zsh git || return $?
# 脚本会自动更换默认的shell
if [[ $deploy_in_cn -eq 1 ]]; then
echo y | REMOTE=https://gitea.107421.xyz/zeaslity/oh-my-zsh.git sh -c "$(curl -fsSL https://gitea.107421.xyz/zeaslity/ohmyzsh/raw/branch/master/tools/install.sh)"
echo y | REMOTE=https://gitea.107421.xyz/zeaslity/ohmyzsh.git sh -c "$(curl -fsSL https://gitea.107421.xyz/zeaslity/ohmyzsh/raw/branch/master/tools/install.sh)"
else
echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
@@ -944,7 +944,7 @@ get_octopus_agent_latest_version(){
echo "find_octopus_latest_version is => $octopus_latest_version"
fi
ColorEchoGreen "Octopus Agent 最新的版本为 => $octopus_latest_version"
colorEchoGreen "Octopus Agent 最新的版本为 => $octopus_latest_version"
}
#######################################
@@ -1215,7 +1215,7 @@ build_offline_host_ip(){
colorEchoBlue "[build_offline_host_ip] - make sure agent offline package has been synchronized to => $host_ip !"
echo ""
if [[ "$host_ip" -eq "" ]]; then
if [ "$host_ip" == "" ]; then
colorEchoRed "[build_offline_host_ip] - offline host ip extraction error ! break !"
return 233
fi