mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6075] [MERGED] fix (install.sh): use realpath instead of script name #6071
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6075
Author: @Intervence
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @MHSanaei
Base:
main← Head:patch-1📝 Commits (2)
cd0cb21fix (install.sh): use realpath instead of script name1cff3dcfix(install): quote the script path before the self-delete📊 Changes
1 file changed (+1 additions, -3 deletions)
View changed files
📝
install.sh(+1 -3)📄 Description
Summary
Why
During arch() sctipt tries to delete itself in case no compatible arch found. This may lead to unexpected file deletion if executed outside root dir; also cur_dir is declared but doesn't seem to be used anywhere
Type of change
Areas affected
How was this tested?
First, i commented out x64 (my current arch) line to emulate unsupported arch and invoked script from different dir containing other install.sh
Instead of deleting initial install script, corresponding script from current dir was deleted
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.