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

chore: fix shellcheck lints #25956

Merged
merged 1 commit into from
Feb 23, 2025
Merged

chore: fix shellcheck lints #25956

merged 1 commit into from
Feb 23, 2025

Conversation

erratic-pattern
Copy link
Contributor

Removed all of the shellcheck complaints that were showing up in my editor.

Where possible, I just fixed them directly but I just told it to ignore this one in the install scripts https://www.shellcheck.net/wiki/SC2059

Happy to go and fix that lint too I just wasn't sure if we prefer the current approach, since it doesn't seem to be causing any problems.

@@ -331,7 +332,7 @@ if [ "${EDITION}" = "Core" ]; then
printf "├─${DIM} Node ID: %s${NC}\n" "$NODE_ID"
printf "├─${DIM} Storage: %s${NC}\n" "$STORAGE_TYPE"
printf "├─${DIM} '%s' serve --node-id='%s' --http-bind='0.0.0.0:%s' %s${NC}\n" "$INSTALL_LOC/$BINARY_NAME" "$NODE_ID" "$PORT" "$STORAGE_FLAGS_ECHO"
"$INSTALL_LOC/$BINARY_NAME" serve --node-id="$NODE_ID" --http-bind="0.0.0.0:$PORT" $STORAGE_FLAGS > /dev/null &
"$INSTALL_LOC/$BINARY_NAME" serve --node-id="$NODE_ID" --http-bind="0.0.0.0:$PORT" "$STORAGE_FLAGS" > /dev/null &
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -4,7 +4,7 @@ set -eu -o pipefail

args=( "$@" )
for i in "${!args[@]}"; do
args[$i]="$(echo "${args[$i]}" | envsubst)"
args[i]="$(echo "${args[$i]}" | envsubst)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed all of the shellcheck complaints that were showing up in my
editor.

Where possible, I just fixed them directly but I just told it to ignore
this one in the install scripts https://www.shellcheck.net/wiki/SC2059

Happy to go and fix that lint too I just wasn't sure if we prefer the
current approach, since it doesn't seem to be causing any problems.
@erratic-pattern erratic-pattern force-pushed the adam/fix-shellcheck-lints branch from 360b87c to 07da4c9 Compare February 23, 2025 00:59
@erratic-pattern erratic-pattern merged commit 891da53 into main Feb 23, 2025
5 of 12 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