Skip to content

chore(audio): replace expr with POSIX arithmetic in audio_common.sh#388

Open
smuppand wants to merge 1 commit intoqualcomm-linux:mainfrom
smuppand:audio
Open

chore(audio): replace expr with POSIX arithmetic in audio_common.sh#388
smuppand wants to merge 1 commit intoqualcomm-linux:mainfrom
smuppand:audio

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented Apr 7, 2026

This PR fixes #329 a small lint-only cleanup in Runner/utils/audio_common.sh.

What is changed:

  • replace the expr-based counter increment with POSIX arithmetic expansion

Why this is needed:
ShellCheck reports SC2003 for the current expr usage. Using POSIX
arithmetic expansion resolves the warning while keeping the same runtime
behavior.

Impact:

  • fixes the current ShellCheck warning in audio_common.sh
  • keeps the existing flow and behavior unchanged
  • does not require broader functional changes

audio_common.sh to address ShellCheck SC2003 without changing the
existing flow or behavior.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.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.

ShellCheck Errors in audio_common.sh Scripts Need to be Addressed

1 participant