Skip to content

Small bug fixes for local setup#178

Open
Vaykhan wants to merge 1 commit into
PXDiv:mainfrom
Vaykhan:local-script-fix
Open

Small bug fixes for local setup#178
Vaykhan wants to merge 1 commit into
PXDiv:mainfrom
Vaykhan:local-script-fix

Conversation

@Vaykhan
Copy link
Copy Markdown

@Vaykhan Vaykhan commented Apr 9, 2026

Fix local-setup.sh bugs

Changes

Sudo re-exec arg forwarding
check_root was passing the wrong args when re-execing with sudo. Added ORIGINAL_ARGS=("$@") capture at the top level so flags are forwarded correctly.

cd error handling
Bare cd calls would silently continue in the wrong directory on failure. Every cd now has a guard, and build results are captured before returning to the parent directory.

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