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

Fix auto installing ps-modules #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

raqso
Copy link

@raqso raqso commented Oct 23, 2023

The current version has 3 issues when using the "ps-modules" directory to auto-install modules:

  1. `ls: cannot access '/ps-modules/*.zip': No such file or directory despite the fact that files are there

  2. In the current implementation basename ${file} doesn't strip the zip extension properly and the module cannot be installed.

  3. If you put a downloaded module zip that doesn't have an archive name like "modulename.zip", it won't work. Usually, they have ps versions, and module versions in the file name. The real name is inside.

After changes from this PR, it started working properly for me.

raqso added 3 commits October 22, 2023 22:57
ls: cannot access '/ps-modules/*.zip': No such file or directory
Remove .zip extension from the name
Usually zip archive will be module_name-1.7-0.2.zip not module_name.zip

The real module name should be taken from the directory inside
@raqso
Copy link
Author

raqso commented Oct 23, 2023

FYI: @jokesterfr

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

Successfully merging this pull request may close these issues.

1 participant