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 incorrect directory path Update extract_abi.sh #1539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdqst
Copy link

@mdqst mdqst commented Nov 19, 2024

Description

I have made a correction in the build script located in build.sh. There was an error in the line that constructs the paths for creating subdirectories.

Issue:

In the original line:

echo "Creating subdirectories in ${root_dir}${dest_dir}${sub_dir} and ${root_dir}${build_dir}${sub_dir}"
  • The paths for ${dest_dir} and ${build_dir} were concatenated without a slash, which could lead to incorrect paths if the root_dir, dest_dir, or build_dir contain relative paths.

Solution:

I replaced the line with the following:

echo "Creating subdirectories in ${root_dir}${dest_dir}/${sub_dir} and ${root_dir}${build_dir}/${sub_dir}"
  • This change correctly formats the paths by adding a slash between ${root_dir} and ${dest_dir} and ${build_dir}.

Why is this change important?

This fix is crucial to ensure that the paths constructed for creating subdirectories are formatted correctly, especially when using relative paths. Without this correction, the script might lead to errors or unexpected behavior when creating the necessary directories for the build process.


Pull Request Details

  • Files Changed: Modified build.sh
  • Reason for Change: Correct path formatting for subdirectory creation.

By merging this change, we will prevent any issues related to incorrect paths during the build process.


I hope this pull request is clear and helps improve the robustness of the build script! Let me know if anything needs to be adjusted.


This PR is ready to be reviewed and merged.


This version is well-structured, clearly explains the mistake, and emphasizes the importance of the fix.

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing

Does this introduce a breaking change?

  • Yes
  • No

Fix incorrect directory path in echo statement
@Eikix
Copy link
Member

Eikix commented Nov 19, 2024

I don't think this is needed since the script currently works well

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.

2 participants