Skip to content

bash: fix arithmetic error while accessing scatter file#1

Open
hdfla wants to merge 1 commit into
alltechdev:mainfrom
hdfla:main
Open

bash: fix arithmetic error while accessing scatter file#1
hdfla wants to merge 1 commit into
alltechdev:mainfrom
hdfla:main

Conversation

@hdfla

@hdfla hdfla commented May 8, 2026

Copy link
Copy Markdown

This removes the binbows created scatter's invisible \r line endings and any extra spaces/newlines.

This removes the binbows created scatter's invisible \r line endings and any extra spaces/newlines.
@alltechdev

Copy link
Copy Markdown
Owner

What error did you face for this correction?

@hdfla

hdfla commented Jun 1, 2026

Copy link
Copy Markdown
Author

What error did you face for this correction?

If a scatter is created by windows or some "mobile toolbox" like unlocktool, mtkclient, etc, it will cause arithmetic error in reading partition size inside when running this script via linux bash, and falls back to default partition size instead.

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