mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Add chnip.ps1
This commit is contained in:
16
scripts/deps/chnip.ps1
Normal file
16
scripts/deps/chnip.ps1
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user