add shebang to all .ps1

This commit is contained in:
AJ ONeal
2020-06-30 11:50:34 -06:00
parent e6bc229479
commit c6aca5216b
7 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env pwsh
# If a command returns an error, halt the script.
$ErrorActionPreference = 'Stop'

View File

@@ -1,4 +1,6 @@
# If a command returns an error, halt the script.
#!/usr/bin/env pwsh
# If a command returns an error, halt the script.
$ErrorActionPreference = 'Stop'
# Ignore progress events from cmdlets so Invoke-WebRequest is not painfully slow

View File

@@ -1,4 +1,6 @@
# If a command returns an error, halt the script.
#!/usr/bin/env pwsh
# If a command returns an error, halt the script.
$ErrorActionPreference = 'Stop'
# Ignore progress events from cmdlets so Invoke-WebRequest is not painfully slow

View File

@@ -1,5 +1,6 @@
# Fetch archive
#!/usr/bin/env pwsh
# Fetch archive
IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE"))
{
# TODO: arch detection

View File

@@ -1 +1,3 @@
#!/usr/bin/env pwsh
curl.exe -fsSL -A "$Env:WEBI_UA" "https://rootprojects.org/pathman/dist/windows/amd64/pathman.exe" -o "$Env:USERPROFILE\.local\bin\pathman.exe"

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env pwsh
$ipv4 = curl.exe -sf https://api.ipify.org
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {

View File

@@ -1 +1,3 @@
#!/usr/bin/env pwsh
# do nothing because this is a special case