chore: fix shellcheck lints (#25956)

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.
pull/26067/head
Adam Curtis 2025-02-23 14:01:46 +13:00 committed by GitHub
parent 044c051aaa
commit 891da53382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -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)"
done
exec "$PACKAGE" "${args[@]}"

View File

@ -1,4 +1,5 @@
#!/bin/sh -e
# shellcheck disable=SC2059
readonly GREEN='\033[0;32m'
readonly BOLD='\033[1m'
@ -64,7 +65,7 @@ elif [ "${OS}" = "Darwin" ]; then
fi
# Exit if unsupported system
[ -n "${ARTIFACT}" ] || {
[ -n "${ARTIFACT}" ] || {
printf "Unfortunately this script doesn't support your '${OS}' | '${ARCHITECTURE}' setup, or was unable to identify it correctly.\n"
printf "Visit our public Discord at \033[4;94mhttps://discord.gg/az4jPm8x${NC} for additional guidance.\n"
printf "View alternative binaries on our Getting Started guide at \033[4;94mhttps://docs.influxdata.com/influxdb3/${EDITION_TAG}/${NC}.\n"
@ -334,7 +335,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 &
PID="$!"
SUCCESS=0