Skip to content

install/script: fix warnings reported by ShellCheck 0.11 - #706

Merged
xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:shellcheck-0.11
Sep 21, 2026
Merged

xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:shellcheck-0.11

Conversation

@xdelaruelle

Copy link
Copy Markdown
Collaborator

ShellCheck 0.11 makes make testlint fail on two spots: reading $? after a bare test command in configure (SC2319) and the += status accumulation in script/mt (SC2324), which appends a string instead of adding a number. The former is turned into an explicit if/else, the latter into a plain assignment.

ShellCheck 0.11 flags reading $? after a bare test command in configure
and the += status accumulation in script/mt, which appends a string
instead of adding a number. Turn the former into an explicit if/else and
the latter into a plain assignment.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@xdelaruelle
xdelaruelle merged commit 894efe8 into envmodules:main Sep 21, 2026
22 checks passed
@xdelaruelle
xdelaruelle deleted the shellcheck-0.11 branch September 21, 2026 07:43
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