Skip to content
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

Case sensitivity bug on linux #71

Open
agowa opened this issue Sep 3, 2018 · 0 comments
Open

Case sensitivity bug on linux #71

agowa opened this issue Sep 3, 2018 · 0 comments

Comments

@agowa
Copy link

agowa commented Sep 3, 2018

Currently this module fails because of a very small bug.
Linux systems are case sensitive, where windows is not.
Currently this module throws an error on linux:

Add-Type : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path '/usr/local/share/powershell/Modules/PSExcel/1.0.2/lib/epplus.dll' because it does not ex
ist."
At /usr/local/share/powershell/Modules/PSExcel/1.0.2/PSExcel.psm1:9 char:41
+     if( -not ($Library = Add-Type -path $BinaryPath -PassThru -ErrorA ...
+                                         ~~~~~~~~~~~
+ CategoryInfo          : WriteError: (:) [Add-Type], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand

The fix is to replace the lowercase filename inside of PSExcel.psm1

agowa pushed a commit to agowa/PSExcel that referenced this issue Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant