chore(pwsh): fmt

This commit is contained in:
AJ ONeal
2023-10-17 23:59:22 -06:00
parent 18eb622850
commit f98086b38e
103 changed files with 1007 additions and 1150 deletions

View File

@@ -4,4 +4,4 @@
Remove-Item -Path "$Env:USERPROFILE\.local\bin\myip.ps1" -Recurse -ErrorAction Ignore
& move "$Env:USERPROFILE\.local\bin\myip.ps1.part" "$Env:USERPROFILE\.local\bin\myip.ps1"
Set-Content -Path "$Env:USERPROFILE\.local\bin\myip.bat" -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\myip.ps1 %1`r`npopd"
& "$Env:USERPROFILE\.local\bin\myip.bat"
& "$Env:USERPROFILE\.local\bin\myip.bat"

View File

@@ -2,14 +2,12 @@
$ipv4 = curl.exe -sf https://api.ipify.org
IF(!($ipv4 -eq $null -or $ipv4 -eq ""))
{
IF (!($ipv4 -eq $null -or $ipv4 -eq "")) {
echo "IPv4 (A) : $ipv4"
}
$ipv6 = curl.exe -sf https://api6.ipify.org
IF(!($ipv6 -eq $null -or $ipv6 -eq ""))
{
IF (!($ipv6 -eq $null -or $ipv6 -eq "")) {
echo "IPv6 (AAAA): $ipv6"
}
}