Error when invoking clojure in the powershell on AppVeyor

Description

After installing clojure from a ps1 script, I invoke it with a simple `clj -Spath`, same error occours in powershell and powershell core with slight variation, not that I removed https://github.com/clojure/brew-install/blob/f023ed48e6826bca3f9a639c484c9a344cd90205/src/main/resources/ClojureTools.psm1#L20 to see the error printed.

ps-core:
```
Copy-Item : Cannot find path 'C:\Users\appveyor\AppData\Local\Temp\1\example-deps.edn' because it does not exist.
At C:\Users\appveyor\AppData\Local\Temp\1\7lsqa7g5g0.ps1:174 char:5
+ Copy-Item "$InstallDir\example-deps.edn" "$ConfigDir\deps.edn"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\appvey...xample-deps.edn:String) [Copy-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
```

ps:
```
Copy-Item : Cannot find path 'C:\example-deps.edn' because it does not exist.
At line:171 char:5
+ Copy-Item "$InstallDir\example-deps.edn" "$ConfigDir\deps.edn"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\example-deps.edn:String) [Copy-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Get-StringHash : The term 'Get-StringHash' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:198 char:20
+ $CacheKeyHash = (Get-StringHash $CacheKey) replace '', ''
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-StringHash:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

java.exe : Error: Could not find or load main class clojure.main
At line:257 char:5
+ & $JavaCmd -Xmx256m -classpath $ToolsCp clojure.main -m clojure.t ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error: Could no...ss clojure.main:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
```

Maybe the environment somehow didn't get right or there should be better handling here https://github.com/clojure/brew-install/blob/f023ed48e6826bca3f9a639c484c9a344cd90205/src/main/resources/ClojureTools.psm1#L195-L197 ?

Environment

AppVeyor: Build worker image Visual Studio 2015

Status

Assignee

Unassigned

Reporter

Alex Miller

Labels

None

Approval

None

Patch

None

Priority

Major
Configure