fix .bin typo
[webi-installers/.git] / _webi / template.ps1
index e3f72789bfde93e2ddbedaca2fc3339da122108e..6ebdcd89a55d61c48ee22dbca16ee5a4dcc0b8ba 100644 (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
@@ -32,8 +34,8 @@ if (!(Test-Path -Path .local\opt))
 # {{ version }}
 
 # Run pathman to set up the folder
-#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\.bin"
-& "$Env:USERPROFILE\.local\bin\pathman.exe" add .local\.bin
+#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin"
+& "$Env:USERPROFILE\.local\bin\pathman.exe" add .local\bin
 
 {{ installer }}