Skip to content

Fix linter warnings in shell scripts and Dockerfile syntax #5607

Open
rucoder wants to merge 3 commits intolf-edge:masterfrom
rucoder:rucoder/linter-fixes-1
Open

Fix linter warnings in shell scripts and Dockerfile syntax #5607
rucoder wants to merge 3 commits intolf-edge:masterfrom
rucoder:rucoder/linter-fixes-1

Conversation

@rucoder
Copy link
Contributor

@rucoder rucoder commented Feb 14, 2026

Description

Fix linter warnings in shell scripts and Dockerfile syntax

NOTE: there will be a false-positive hadolint warning due to hadolint/hadolint#951

PR dependencies

None

How to test and validate this PR

run yetus

Changelog notes

None

PR Backports

Not required. cosmetic change

Checklist

  • I've provided a proper description

  • I've added the proper documentation

  • I've tested my PR on amd64 device

  • I've tested my PR on arm64 device

  • I've written the test verification instructions

  • I've set the proper labels to this PR

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

ENV must have '=' in assignment and lists must be "'ed

NOTE: there is a false-positive hadolint warning due to hadolint/hadolint#951

- packages affected
pkg/dom0-ztools
pkg/xen-tools

Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
- use $() instead of ``
- fix shellcheck: note: Double quote to prevent globbing and word splitting. [SC2086]

Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses linter warnings in shell scripts and Dockerfiles by modernizing syntax and improving code quality. The changes are purely cosmetic and do not affect functionality. They convert deprecated backtick command substitution to modern $() syntax, add proper variable quoting for safety, standardize Dockerfile ENV declarations to use equals signs, and fix multi-line command indentation.

Changes:

  • Converted backtick command substitution to modern $() syntax in shell scripts
  • Added quotes around shell variables in command arguments for safety
  • Standardized Dockerfile ENV variable declarations to use ENV VAR=value syntax
  • Fixed multi-line command indentation in Dockerfile for better readability

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/xen-tools/initrd/init-initrd Modernized shell syntax by converting backticks to $() and adding variable quotes
pkg/xen-tools/Dockerfile Standardized ENV syntax with equals signs and fixed multi-line command indentation
pkg/dom0-ztools/rootfs/etc/init.d/010-eve-cgroup Converted backtick to $() for command substitution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- previous commit changes a hash for eve-dom0-ztools so we must update all references to it

Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
@rucoder rucoder force-pushed the rucoder/linter-fixes-1 branch from 775a1e9 to 324f78b Compare February 14, 2026 14:07
@rucoder
Copy link
Contributor Author

rucoder commented Feb 15, 2026

@rene go tests are irrelevant here, I'll fix them in another PR. we can merge I think

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