#!/bin/bash
chose_branch=$1
server_list=("axxxx" "axxxxxxxx")
srcDir='/usr/xxxxxx/xxxxxx/'
function add_ssh_key()
{
cd ~/.ssh/
ssh-agent bash
ssh-add id_rsa_xxxxxx
}
function change_config()
{
sed -i "s/xxx=.*/xxx=$XXX/g" $xxxx_conf
}
function clone_gitcode()
{
if [[ "$chose_branch" = "master" ]]; then
git_pull_master;
elif [[ "$chose_branch" = "dev" ]]; then
Shell 自动拉取 git 分支,mvn 打包,部署远程调试的脚本
最新推荐文章于 2024-04-05 21:18:04 发布