From 5c99396553c84fe2a6a830e352e5e81399f7299d Mon Sep 17 00:00:00 2001 From: Netch Date: Sat, 14 Aug 2021 05:08:08 +0800 Subject: [PATCH] Add chnip.ps1 --- scripts/deps/chnip.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/deps/chnip.ps1 diff --git a/scripts/deps/chnip.ps1 b/scripts/deps/chnip.ps1 new file mode 100644 index 00000000..8245c488 --- /dev/null +++ b/scripts/deps/chnip.ps1 @@ -0,0 +1,16 @@ +param ( + [string] + $OutputPath +) + +try { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt' ` + -OutFile 'chnip.txt' +} +catch { + exit 1 +} + +mv -Force 'chnip.txt' $OutputPath +exit 0 \ No newline at end of file