很不错
yarn gen:config:custom appId=$appid会报错,改成yarn config set appId $appid
优化后的代码找到后break只是从while循环中break出来吧,上层的for循环还会继续跑,这里再加一个break会不会好点。