Skip to content

Commit

Permalink
parse.sh: eliminate empty lines in temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
flameshikari authored and xtrime-ru committed Dec 19, 2024
1 parent ef4a0e5 commit b34db47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/root/antizapret/parse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

for file in config/custom/{include,exclude}-{hosts,ips}-custom.txt; do
basename=$(basename $file | sed 's|-custom.txt||')
sort -u $file config/${basename}-dist.txt > temp/${basename}.txt
sort -u $file config/${basename}-dist.txt | uniq | awk 'NF' > temp/${basename}.txt
done
sort -u temp/include-hosts.txt result/hostlist_original.txt > temp/hostlist_original_with_include.txt

Expand Down

0 comments on commit b34db47

Please sign in to comment.