mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
add shebang to all .ps1
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# If a command returns an error, halt the script.
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
$ipv4 = curl.exe -sf https://api.ipify.org
|
||||
|
||||
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# do nothing because this is a special case
|
||||
|
||||
Reference in New Issue
Block a user