Skip to content

fix: improve script safety and clarity in path and temp handling#7

Open
wubin1989 wants to merge 1 commit intomainfrom
upstream-open-pr-142
Open

fix: improve script safety and clarity in path and temp handling#7
wubin1989 wants to merge 1 commit intomainfrom
upstream-open-pr-142

Conversation

@wubin1989
Copy link
Copy Markdown
Owner

Migrated open PR from upstream for local review.

Upstream: opencode-ai#142
Upstream head: appleboy:shell @ f4367e8

- Remove unnecessary blank lines for improved script clarity
- Replace hardcoded temp directory with mktemp for safer temporary file creation during download
- Fix logic to correctly detect if INSTALL_DIR is already in PATH and prevent duplicate PATH entries
- Print a message when INSTALL_DIR is already present in PATH

Signed-off-by: appleboy <appleboy.tw@gmail.com>
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