mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-10 03:55:35 +08:00
Update bm7.sh
This commit is contained in:
parent
8e5b64e579
commit
582b71021c
@ -10,6 +10,12 @@ if [ ! -d rule ]; then
|
|||||||
rm -rf .git
|
rm -rf .git
|
||||||
fi
|
fi
|
||||||
# 移动文件/目录到同一文件夹
|
# 移动文件/目录到同一文件夹
|
||||||
|
list=($(find ./rule/Clash/ | awk -F '/' '{print $5}' | sed '/^$/d' | grep -v '\.' | sort -u))
|
||||||
|
for ((i = 0; i < ${#list[@]}; i++)); do
|
||||||
|
path=$(find ./rule/Clash/ -name ${list[i]})
|
||||||
|
mv $path ./rule/Clash/
|
||||||
|
done
|
||||||
|
|
||||||
list=($(ls ./rule/Clash/))
|
list=($(ls ./rule/Clash/))
|
||||||
for ((i = 0; i < ${#list[@]}; i++)); do
|
for ((i = 0; i < ${#list[@]}; i++)); do
|
||||||
if [ -z "$(ls ./rule/Clash/${list[i]} | grep '.yaml')" ]; then
|
if [ -z "$(ls ./rule/Clash/${list[i]} | grep '.yaml')" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user