主文件修改布局
parent
8475163fd6
commit
411ee60454
5
main.sh
5
main.sh
|
@ -212,7 +212,6 @@ update_game(){
|
|||
game_update_option() {
|
||||
echo -e "${yellow}游戏服更新开始...${NC}"
|
||||
local action=$1
|
||||
local current_time=get_current_time
|
||||
case $action in
|
||||
"create_update_package") game_code_build "update" "update_game.sh" ;;
|
||||
"official_reboot") game_code_official "update" "1" ;;
|
||||
|
@ -232,6 +231,8 @@ game_update_option() {
|
|||
game_code_build(){
|
||||
local type=$1
|
||||
local script=$2
|
||||
# shellcheck disable=SC2154
|
||||
local current_time=${get_current_time}
|
||||
show_file project | grep master
|
||||
read -rp "请输入项目地址: " project
|
||||
bash "${script}" "${project}" "${project}_${type}_${current_time}"
|
||||
|
@ -382,7 +383,7 @@ update_mingan(){
|
|||
|
||||
# 处理用户输入
|
||||
handle_menu() {
|
||||
local current_time=get_current_time
|
||||
local current_time=${get_current_time}
|
||||
echo -e "****************************"
|
||||
echo -e "${blue}欢迎使用戒灵更新脚本-${current_time}${NC}"
|
||||
echo -e "1. ${yellow}游戏服更新${NC}"
|
||||
|
|
Loading…
Reference in New Issue