Skip to content

WIP: Fix shellcheck issues #4491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 981 commits into
base: devel
Choose a base branch
from

Conversation

ThalesBarretto
Copy link
Contributor

@ThalesBarretto ThalesBarretto commented Mar 6, 2025

This series is bound to address shellcheck reported issues.

It should minimize the linter logs whitout changing script behaviour.
Most of the linter reports are trivial, but some errors may also linger in the scripts.

Most important of all is that we change the shell to BASH.
This by itself prevents lots of mistakes where /bin/sh is not a link to /bin/bash.
Also, the use of /usr/bin/env BASH is set as the standard shebang line.

@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

…-split-brain-detection.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…match-error-handling.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…trs.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…al-restore-time.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…eout.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…al-not-happening.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…3-sbrain-cli.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…-heal-restore-time.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…al.t

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…reate-post.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…inux-label-brick.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…-start.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…ate-subdir-mounts.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…terfs.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…p.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
…st-build.sh

	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
	This commit changes the shell to #!/usr/bin/env bash.

        This series aim to reduce the shellcheck logs.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
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