mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
25 lines
488 B
Bash
25 lines
488 B
Bash
#! /bin/bash
|
|
|
|
ignoreDir=(
|
|
less
|
|
)
|
|
|
|
|
|
read_dir(){
|
|
for file in `ls $1`
|
|
do
|
|
if [ -d $1"/"$file ]; then
|
|
if [[ ! "${ignoreDir[@]}" =~ "${file}" ]]; then
|
|
read_dir $1"/"$file $2
|
|
fi
|
|
else
|
|
filePath=$1"/"$file
|
|
filePath=${filePath/$2\//}
|
|
echo ''
|
|
echo 'purging '${filePath}'...'
|
|
curl -s https://purge.jsdelivr.net/gh/$3/$filePath
|
|
fi
|
|
done
|
|
}
|
|
|
|
read_dir $1 $1 $2 |