projects
/
webi-installers
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add shebang to all .ps1
[webi-installers/.git]
/
vps-myip
/
install.ps1
1
#!/usr/bin/env pwsh
2
3
$ipv4 = curl.exe -sf https://api.ipify.org
4
5
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
6
echo "IPv4 (A) : $ipv4"
7
}
8
9
$ipv6 = curl.exe -sf https://api6.ipify.org
10
11
IF(!($ipv6 -eq $null -or $ipv6 -eq "")) {
12
echo "IPv6 (AAAA): $ipv6"
13
}