cvrf2cusa/cvrf/download.sh
Jia Chao 0b34274085 git mv
Signed-off-by: Jia Chao <jiac13@chinaunicom.cn>
2024-07-25 09:57:37 +08:00

14 lines
358 B
Bash
Executable File

#!/usr/bin/env bash
# Filename: download.sh
# author: 'Jia Chao'
touch index.txt
wget http://mirrors.ustc.edu.cn/openeuler/security/data/cvrf/index.txt -O new.txt 2> /dev/null
diff new.txt index.txt | rg '<' | awk '{print $2}' | while read line
do
wget -c http://mirrors.ustc.edu.cn/openeuler/security/data/cvrf/$line -O $line
done
mv new.txt index.txt