Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Fix Unsafe Command Expansion in build-tplprev.sh#2084

Open
advaitpatel wants to merge 1 commit intocontainrrr:mainfrom
advaitpatel:advait-patel-refactoring-build-tplprev-sh
Open

Fix Unsafe Command Expansion in build-tplprev.sh#2084
advaitpatel wants to merge 1 commit intocontainrrr:mainfrom
advaitpatel:advait-patel-refactoring-build-tplprev-sh

Conversation

@advaitpatel
Copy link

The script uses cd $(git rev-parse --show-toplevel), which fails if the path has spaces.

Therefore, replaced cd $(command) with cd "$(command)" to properly handle spaces.

After these changes. it prevents build failures due to incorrect path handling and improves error reporting too.

The script uses `cd $(git rev-parse --show-toplevel)`, which fails if the path has spaces.

Therefore, replaced `cd $(command)` with `cd "$(command)"` to properly handle spaces.

After these changes. it prevents build failures due to incorrect path handling and improves error reporting too.
@advaitpatel
Copy link
Author

Hello @simskij / @piksel can i please get a review on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant