diff --git a/main.sh b/main.sh index a626721..6cc0546 100644 --- a/main.sh +++ b/main.sh @@ -231,8 +231,8 @@ game_update_option() { game_code_build(){ local type=$1 local script=$2 - # shellcheck disable=SC2154 - local current_time=${get_current_time} + # shellcheck disable=SC2155 + local current_time=$(get_current_time) show_file project | grep master read -rp "请输入项目地址: " project bash "${script}" "${project}" "${project}_${type}_${current_time}" @@ -384,9 +384,9 @@ update_mingan(){ # 处理用户输入 handle_menu() { local current_time - current_time=${get_current_time} + current_time=$(get_current_time) echo -e "${blue}****************************${NC}" - echo -e "${yellow}欢迎使用戒灵更新脚本...${current_time}${NC}" + echo -e "${purple}欢迎使用戒灵更新脚本...${current_time}${NC}" echo -e "1.游戏服更新" echo -e "2.gm后台更新" echo -e "3.登陆服更新"