Skip to content
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

mstpctl-utils-functions.sh: fix shellcheck warnings #7

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

KanjiMonster
Copy link
Collaborator

Fix the following shellcheck warnings:

In utils/mstpctl-utils-functions.sh line 5:
while [ x"${1+set}" = xset ]
^---------^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.

Did you mean:
while [ "${1+set}" = set ]

In utils/mstpctl-utils-functions.sh line 53:
echo $i
^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
echo "$i"

Fix the following shellcheck warnings:

In utils/mstpctl-utils-functions.sh line 5:
  while [ x"${1+set}" = xset ]
          ^---------^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.

Did you mean:
  while [ "${1+set}" = set ]

In utils/mstpctl-utils-functions.sh line 53:
    echo $i
         ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
    echo "$i"

Signed-off-by: Jonas Gorski <[email protected]>
@KanjiMonster KanjiMonster requested a review from rubensfig October 9, 2024 09:48
@rubensfig rubensfig merged commit 002ed9e into 0.1.0+bisdn Oct 9, 2024
2 checks passed
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