mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-08 08:54:13 +08:00
test rename dir2
This commit is contained in:
parent
903ca174bd
commit
27a4ef5c5e
2
.github/workflows/run.yml
vendored
2
.github/workflows/run.yml
vendored
@ -41,7 +41,7 @@ jobs:
|
||||
run: |
|
||||
cd sing-rule || exit 1
|
||||
wget -q https://github.com/SagerNet/sing-box/releases/download/v1.8.12/sing-box-1.8.12-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.12-linux-amd64/sing-box ./
|
||||
chmod 755 sing-box ACL4SSR/convert_srs.sh && ./ACL4SSR/convert_srs.sh
|
||||
chmod 755 sing-box ACL4SSR/convert_srs.sh && ./ACL4SSR/convert_srs.sh ../sing-box
|
||||
rm -rf sing-box* LICENSE README.md ACL4SSR/convert_*
|
||||
|
||||
- name: Git push assets to "sing-rule" branch
|
||||
|
@ -2,7 +2,12 @@
|
||||
|
||||
CURRENT_DIR=$(cd $(dirname $0); pwd)
|
||||
|
||||
target_dir=$1
|
||||
sing_exe=$1
|
||||
if [ -z "$sing_exe" ]; then
|
||||
sing_exe='./sing-box'
|
||||
fi
|
||||
|
||||
target_dir=$2
|
||||
if [ -z "$target_dir" ]; then
|
||||
target_dir=$CURRENT_DIR
|
||||
fi
|
||||
@ -20,7 +25,7 @@ echo "finding<= ${target_dir}"
|
||||
find . -type f -name "*.json" | while read filename; do
|
||||
srs_file=${filename%.json}.srs
|
||||
echo "source << ${filename}"
|
||||
./sing-box rule-set compile $filename -o $srs_file
|
||||
sing_exe rule-set compile $filename -o $srs_file
|
||||
echo -e "output >> ${srs_file}\n"
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user