basherpm / basher

A package manager for shell scripts.
https://www.basher.it/
MIT License
1.16k stars 74 forks source link

basher list doesn't handle deeper directory structures #109

Open nhomble opened 2 years ago

nhomble commented 2 years ago

I've been hosting some scripts in a gitlab organization which doesn't follow the nice username/project structure we have in github. It's more like org/group/function/repo.

When I do basher list, I only get part of the path which means basher upgrade trivially succeeds cause it doesn't find the git project to pull.

My current workaround is to manually pull in the basher cellar.

Looking at the implementation, the assumption looks to be in the package_path loop in basher-list

for package_path in "${BASHER_PACKAGES_PATH}"/*/*
.
.
.

-- @juanibiapina maybe we can come up with a better list of git repos with find?

juanibiapina commented 2 years ago

Yeah, or a better glob pattern.