55 Star 488 Fork 74

cristiane/micro-mall-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
clean-logs-all.sh 952 Bytes
一键复制 编辑 原始数据 按行查看 历史
雨化田 提交于 2021-10-04 21:52 . 交易订单搜索
#! /bin/bash
project_names=(
"micro-mall-api"
"micro-mall-users"
"micro-mall-users-consumer"
"micro-mall-users-cron"
"micro-mall-shop"
"micro-mall-shop-cron"
"micro-mall-trolley"
"micro-mall-sku"
"micro-mall-sku-cron"
"micro-mall-order"
"micro-mall-order-cron"
"micro-mall-order-consumer"
"micro-mall-pay"
"micro-mall-pay-consumer"
"micro-mall-logistics"
"micro-mall-comments"
"micro-mall-search"
"micro-mall-search-cron"
"micro-mall-search-shop-consumer"
"micro-mall-search-sku-consumer"
"micro-mall-search-users-consumer"
"micro-mall-search-order-consumer"
)
# 遍历所有目录 清理logs
function loopPathCleanLogs() {
for file in ${project_names[*]}; do
cd "$file" || exit
echo "=> $file"
sh clean-logs.sh
cd ../
done
}
# 返回上一级
cd ../
# 遍历所有目录 清理logs
echo "开始遍历目录下logs目录"
# shellcheck disable=SC2046
loopPathCleanLogs $(pwd)
# shellcheck disable=SC2028
echo "清理完成"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cristiane/micro-mall-api.git
git@gitee.com:cristiane/micro-mall-api.git
cristiane
micro-mall-api
micro-mall-api
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385