-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] curl.exe doesn't exist #22
Comments
Thanks for the report, I'll get that fixed (eventually 😅) |
thanks, |
But great project anyways 😄 |
I removed those variables 😓 |
what do you mean? |
this is what I get out of the box: PS /home/nihil> Write-Host $IsLinux
True
PS /home/nihil> Write-Host $IsWindows
False
PS /home/nihil> Write-Host $IsMacos
False |
I'm afraid those variables only exist in Powershell Core, not the windows native version, so I can't rely on them :/ |
well then, you could try to see if the variable is defined and do:
|
found this otherwise: https://devblogs.microsoft.com/scripting/powertip-determine-your-version-of-powershell-and-host-operating-system/ using
|
This change makes the assumption that any non-Windows OS is using Powershell Core, which does not have the silly `curl` alias for `Invoke-Webrequest`, making this change safe. Fixes #22
Should be all fixed, thanks for the helpful pointers :) |
no problem, thank you for the fix. |
Oh, it actually is. That simplifies this greatly. |
Changed, thanks :D https://github.com/EnigmaticaModpacks/ModpackUploader/releases/tag/2.3.2
|
Modpack Version
none
Describe your issue.
curl.exe
won't work on Linux, I think you'll need a variable set tocurl.exe
on win and tocurl
on Linuxbtw, I think you need to change your issue template for this repo ^^
Crash Report
No response
Latest Log
No response
Have you modified the modpack?
No
User Modifications
No response
Did the issue happen in singleplayer or on a server?
Both
Discord Username
No response
The text was updated successfully, but these errors were encountered: