Skip to content

Fix basename usage in install.sh script#50

Merged
bramwelt merged 1 commit intomainfrom
install-fix
Apr 20, 2026
Merged

Fix basename usage in install.sh script#50
bramwelt merged 1 commit intomainfrom
install-fix

Conversation

@bramwelt
Copy link
Copy Markdown
Contributor

basename on a directory with a trailing '/' results in an empty value.
This change updates the '$skill_path' variable passed to basename to
include '%/' to strip any trailing slashes if they exist.

Signed-off-by: Trevor Bramwell tbramwell@linuxfoundation.org

basename on a directory with a trailing '/' results in an empty value.
This change updates the '$skill_path' variable passed to basename to
include '%/' to strip any trailing slashes if they exist.

Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Copilot AI review requested due to automatic review settings April 17, 2026 23:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the skills installer script to derive skill_name correctly when iterating over directory paths that include a trailing /, avoiding basename returning an empty string in that case.

Changes:

  • Strip a trailing slash from skill_path before passing it to basename when computing skill_name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bramwelt bramwelt merged commit 96d8a8d into main Apr 20, 2026
8 checks passed
@bramwelt bramwelt deleted the install-fix branch April 20, 2026 22:13
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.

3 participants