projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e6bc229
)
add shebang to all .ps1
author
AJ ONeal
<coolaj86@gmail.com>
Tue, 30 Jun 2020 17:50:34 +0000
(11:50 -0600)
committer
AJ ONeal
<coolaj86@gmail.com>
Tue, 30 Jun 2020 17:50:34 +0000
(11:50 -0600)
_webi/bootstrap.ps1
patch
|
blob
|
history
_webi/template.ps1
patch
|
blob
|
history
_webi/webi.ps1
patch
|
blob
|
history
node/install.ps1
patch
|
blob
|
history
pathman/install.ps1
patch
|
blob
|
history
vps-myip/install.ps1
patch
|
blob
|
history
webi/install.ps1
patch
|
blob
|
history
diff --git
a/_webi/bootstrap.ps1
b/_webi/bootstrap.ps1
index f4f1a091606defff3e51887d8e76a6775b637510..18b0bf87b30e5e1275c58a0c32fc24ad3a8aaaf1 100644
(file)
--- a/
_webi/bootstrap.ps1
+++ b/
_webi/bootstrap.ps1
@@
-1,3
+1,5
@@
+#!/usr/bin/env pwsh
+
# If a command returns an error, halt the script.
$ErrorActionPreference = 'Stop'
# If a command returns an error, halt the script.
$ErrorActionPreference = 'Stop'
diff --git
a/_webi/template.ps1
b/_webi/template.ps1
index e3f72789bfde93e2ddbedaca2fc3339da122108e..7a72e7008054e60a374347687fa4536e5a5702bf 100644
(file)
--- a/
_webi/template.ps1
+++ b/
_webi/template.ps1
@@
-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
$ErrorActionPreference = 'Stop'
# Ignore progress events from cmdlets so Invoke-WebRequest is not painfully slow
diff --git
a/_webi/webi.ps1
b/_webi/webi.ps1
index 7ec0c1d368c03318870321c57835e6da189cf8ff..21a4e957966f794c200d91c58af903b775031c56 100644
(file)
--- a/
_webi/webi.ps1
+++ b/
_webi/webi.ps1
@@
-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
$ErrorActionPreference = 'Stop'
# Ignore progress events from cmdlets so Invoke-WebRequest is not painfully slow
diff --git
a/node/install.ps1
b/node/install.ps1
index 64a60969962e9d4a3b85f64072af1fda00ba3c65..a7fe891ae7099d616b85cc2cff4451987242a6bf 100644
(file)
--- a/
node/install.ps1
+++ b/
node/install.ps1
@@
-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
IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE"))
{
# TODO: arch detection
diff --git
a/pathman/install.ps1
b/pathman/install.ps1
index dd729e4e00bbd337f4003e799e35204f6893c21c..5ec3a4b324207403cf9408630a0d9a1fd337fd2d 100644
(file)
--- a/
pathman/install.ps1
+++ b/
pathman/install.ps1
@@
-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"
curl.exe -fsSL -A "$Env:WEBI_UA" "https://rootprojects.org/pathman/dist/windows/amd64/pathman.exe" -o "$Env:USERPROFILE\.local\bin\pathman.exe"
diff --git
a/vps-myip/install.ps1
b/vps-myip/install.ps1
index 81fb0ce1519baa339f26de94a50d761186231643..2cde75ee6a777e0425960d48267b22a148fe7656 100644
(file)
--- a/
vps-myip/install.ps1
+++ b/
vps-myip/install.ps1
@@
-1,3
+1,5
@@
+#!/usr/bin/env pwsh
+
$ipv4 = curl.exe -sf https://api.ipify.org
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
$ipv4 = curl.exe -sf https://api.ipify.org
IF(!($ipv4 -eq $null -or $ipv4 -eq "")) {
diff --git
a/webi/install.ps1
b/webi/install.ps1
index 9689b72dee9a376a1fc19ce2e28555112ceaafce..91a2774335d8569d5e83ae134951159fc81fac96 100644
(file)
--- a/
webi/install.ps1
+++ b/
webi/install.ps1
@@
-1
+1,3
@@
+#!/usr/bin/env pwsh
+
# do nothing because this is a special case
# do nothing because this is a special case