chocolatey-community / simple-server

The Chocolatey Simple Server - https://community.chocolatey.org/packages/chocolatey.server
Apache License 2.0
44 stars 17 forks source link

install.ps1 - Function Download-Script is called before its definition #41

Closed theonlydude1 closed 6 years ago

theonlydude1 commented 6 years ago

Hello, In version 0.2.3 install.ps1 call the function Download-String in line 26 but the function is defined starting line 134 resulting in a commandnotfound error. Is it possible to move the function definitions at the top of the script ?

ferventcoder commented 6 years ago

Good catch, let's make that adjustment.

ferventcoder commented 6 years ago

That was a last minute change, definitely need to fix that.

ferventcoder commented 6 years ago

This has been pushed with 0.2.4. Look for that when moderation finishes in about 1-2 hours.