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
parent
044c051aaa
commit
891da53382
|
@ -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[@]}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue