refactor(deploy): 使用函数替换关联数组以提高兼容性
将环境列表从关联数组改为函数实现,以兼容更多shell版本。同时提取获取所有环境的逻辑到单独函数,提高代码可维护性。
Showing
1 changed file
with
26 additions
and
15 deletions
-
Please register or login to post a comment
将环境列表从关联数组改为函数实现,以兼容更多shell版本。同时提取获取所有环境的逻辑到单独函数,提高代码可维护性。